build.yml (1227B)
1 name: build 2 3 on: [push, pull_request] 4 5 jobs: 6 linux: 7 strategy: 8 fail-fast: false 9 matrix: 10 os: [ubuntu-latest, ubuntu-24.04-arm] 11 cc: ["gcc", "clang"] 12 runs-on: ${{matrix.os}} 13 steps: 14 - uses: actions/checkout@v4 15 with: 16 submodules: 'true' 17 - name: Install dependencies 18 run: | 19 sudo apt update 20 sudo apt install libxkbcommon-dev xorg-dev 21 - name: Build 22 run: ${{matrix.cc}} -march=native -O3 build.c -Iexternal/include -o build && ./build && ./build --debug 23 24 windows: 25 runs-on: windows-latest 26 strategy: 27 fail-fast: false 28 matrix: 29 include: 30 - { sys: ucrt64, env: ucrt-x86_64, cc: "gcc" } 31 - { sys: clang64, env: clang-x86_64, cc: "clang" } 32 defaults: 33 run: 34 shell: msys2 {0} 35 steps: 36 - uses: actions/checkout@v4 37 with: 38 submodules: 'true' 39 - uses: msys2/setup-msys2@v2 40 with: 41 msystem: ${{matrix.sys}} 42 update: true 43 install: git mingw-w64-${{matrix.env}}-${{matrix.cc}} 44 45 - name: Build 46 run: ${{matrix.cc}} -march=native -O3 build.c -Iexternal/include -o build && ./build && ./build --debug