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