From 0c215ec98d44f3cd7f49833772e232b87ed3a83e Mon Sep 17 00:00:00 2001 From: Eduard Staniloiu Date: Wed, 26 Jan 2022 17:29:01 +0200 Subject: [PATCH] Add GH Actions build script (#4) --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ makefile | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f23461a --- /dev/null +++ b/.github/workflows/build.yml @@ -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 + diff --git a/makefile b/makefile index c9ee792..2aca819 100644 --- a/makefile +++ b/makefile @@ -113,7 +113,6 @@ SHELL:=/usr/bin/env bash GITHASH = bin/githash.txt - $(OBJ_DIR)/$(DC)/%.o: %.d ${DC} ${DC_FLAGS} ${VERSIONS} ${INCLUDE_PATHS} -c $< ${WRITE_TO_TARGET_NAME}