diff options
| author | mtg0001 <106211915+mtg0001@users.noreply.github.com> | 2026-08-04 15:26:56 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-04 15:26:56 -0300 |
| commit | 173b4649e90f4f5ba49e92569eb063709e647c7d (patch) | |
| tree | b92d3039ed532ac09a5c3a86f4033303e5730ab4 /.github/workflows/ci.yml | |
| parent | 5ac1fd55eea9d4b5e9b34be50d3b684693e3a935 (diff) | |
ci: add GitHub Actions build and selftests (#140)
Co-authored-by: Gilcimar Duarte <ti@gpm.infra>
Diffstat (limited to '.github/workflows/ci.yml')
| -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 | ||