From a1f1c841c085f341baaf2f8b3280d962131f7909 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sat, 13 Sep 2025 20:04:38 +0200 Subject: [PATCH] write a CI workflow for multiple OSes, that compile and test the code using the makefile. --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..040376f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: CI +on: + push: + branches: [main] + +jobs: + compile-and-test: + strategy: + matrix: + os: + - ubuntu-latest + - ubuntu-24.04-arm + - windows-latest + - windows-11-arm + - macos-latest + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v5 + with: + repository: ${{github.repository}} + submodules: true + fetch-depth: 1 + - uses: actions/cache@v4 + with: + path: lib/obj/ + key: ${{runner.os}}-lib/obj-${{github.sha}} + restore-keys: ${{runner.os}}-lib/obj- + - run: make libs + - run: make all + - run: make test