diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..46040f5 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,22 @@ +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: build + +jobs: + build: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macOS-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v4 + - name: cmake + run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${HOME}/local + - run: cmake --build build -j 2 + - run: cmake --install build + - run: ctest --test-dir build -V -j 2