From 6ba7cda928ef40284b38eb9e9808fd5b15f84aba Mon Sep 17 00:00:00 2001 From: "Watal M. Iwasaki" Date: Thu, 24 Oct 2024 15:22:19 +0900 Subject: [PATCH] :white_check_mark: Setup CI --- .github/workflows/build.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build.yaml 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