diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..985ba8a --- /dev/null +++ b/.github/workflows/ci.yml | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | name: CI | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | pull_request: | ||
| 6 | |||
| 7 | permissions: | ||
| 8 | contents: read | ||
| 9 | |||
| 10 | concurrency: | ||
| 11 | group: ci-${{ github.workflow }}-${{ github.ref }} | ||
| 12 | cancel-in-progress: true | ||
| 13 | |||
| 14 | jobs: | ||
| 15 | linux-headless: | ||
| 16 | name: Linux headless selftests | ||
| 17 | runs-on: ubuntu-latest | ||
| 18 | steps: | ||
| 19 | - name: Check out repository | ||
| 20 | uses: actions/checkout@v5 | ||
| 21 | |||
| 22 | - name: Install Linux dependencies | ||
| 23 | run: make deps-linux | ||
| 24 | |||
| 25 | - name: Run Linux selftests | ||
| 26 | run: make tests | ||
| 27 | |||
| 28 | windows-ucrt64: | ||
| 29 | name: Windows UCRT64 selftests | ||
| 30 | runs-on: windows-latest | ||
| 31 | defaults: | ||
| 32 | run: | ||
| 33 | shell: msys2 {0} | ||
| 34 | steps: | ||
| 35 | - name: Check out repository | ||
| 36 | uses: actions/checkout@v5 | ||
| 37 | |||
| 38 | - name: Set up MSYS2 | ||
| 39 | uses: msys2/setup-msys2@v2 | ||
| 40 | with: | ||
| 41 | msystem: UCRT64 | ||
| 42 | update: true | ||
| 43 | install: >- | ||
| 44 | git | ||
| 45 | make | ||
| 46 | mingw-w64-ucrt-x86_64-gcc | ||
| 47 | mingw-w64-ucrt-x86_64-glfw | ||
| 48 | mingw-w64-ucrt-x86_64-openssl | ||
| 49 | mingw-w64-ucrt-x86_64-db | ||
| 50 | mingw-w64-ucrt-x86_64-libsodium | ||
| 51 | mingw-w64-ucrt-x86_64-nlohmann-json | ||
| 52 | mingw-w64-ucrt-x86_64-boost | ||
| 53 | mingw-w64-ucrt-x86_64-cmake | ||
| 54 | autoconf | ||
| 55 | automake | ||
| 56 | libtool | ||
| 57 | |||
| 58 | - name: Build Windows dependencies | ||
| 59 | run: make deps-windows | ||
| 60 | |||
| 61 | - name: Run Windows selftests | ||
| 62 | run: cd src && make -f makefile.mingw tests | ||