Add GH Actions build script (#4)

This commit is contained in:
Eduard Staniloiu 2022-01-26 17:29:01 +02:00 committed by Vladiwostok
parent ed81b06414
commit 0c215ec98d
2 changed files with 24 additions and 1 deletions

24
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Run tests
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dmd
run: |
curl https://dlang.org/install.sh | bash -s
# Uncomment to get a ssh connection inside the GH Actions runner
#- name: Setup upterm session
#uses: lhotari/action-upterm@v1
- name: Run tests
run: |
source ~/dlang/*/activate
make test

View File

@ -113,7 +113,6 @@ SHELL:=/usr/bin/env bash
GITHASH = bin/githash.txt GITHASH = bin/githash.txt
$(OBJ_DIR)/$(DC)/%.o: %.d $(OBJ_DIR)/$(DC)/%.o: %.d
${DC} ${DC_FLAGS} ${VERSIONS} ${INCLUDE_PATHS} -c $< ${WRITE_TO_TARGET_NAME} ${DC} ${DC_FLAGS} ${VERSIONS} ${INCLUDE_PATHS} -c $< ${WRITE_TO_TARGET_NAME}