From d29355ccc8fd82ea349f845800b2f87885f4cf68 Mon Sep 17 00:00:00 2001 From: dmsc Date: Tue, 23 Apr 2024 10:59:56 -0400 Subject: [PATCH] Adds github workflow for building on Ubuntu. --- .github/workflows/c-cpp.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..1cf527a --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,31 @@ +name: C/C++ CI + +on: + workflow_dispatch: + push: + branches: [ "master" ] + pull_request: + +jobs: + build-amd64: + name: Build and run tests on Linux amd64 + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + - name: make + run: make -j2 + - name: running testsuite + run: make test -j2 + - name: make dist + run: make dist + - name: Archive ZIP + uses: actions/upload-artifact@v4 + with: + name: fastbasic.atr + path: build/fastbasic.atr + - name: Archive ZIP + uses: actions/upload-artifact@v4 + with: + name: fastbasic-linux-amd64.zip + path: build/fastbasic.zip