1name: Build libder 2on: 3 push: 4 branches: ['**'] 5 pull_request: 6 types: [opened, reopened, edited, synchronize] 7 8permissions: 9 contents: read 10 11jobs: 12 build: 13 name: Build ${{ matrix.os }} 14 runs-on: ${{ matrix.os }} 15 strategy: 16 matrix: 17 os: [ubuntu-20.04, ubuntu-22.04, macos-latest] 18 include: 19 - os: ubuntu-20.04 20 - os: ubuntu-22.04 21 - os: macos-latest 22 steps: 23 - name: checkout 24 uses: actions/checkout@v4 25 - name: install system packages (Ubuntu) 26 if: runner.os == 'Linux' 27 run: | 28 sudo apt-get update --quiet || true 29 sudo apt-get -yq --no-install-suggests --no-install-recommends install cmake 30 - name: install system packages (macOS) 31 if: runner.os == 'macOS' 32 run: | 33 brew update --quiet || true 34 brew install cmake coreutils 35 - name: configure 36 run: | 37 cmake -B build -DCMAKE_BUILD_TYPE=Debug 38 - name: build libder 39 run: make -C build 40 - name: Run self-tests 41 run: make -C build check 42