diff options
author | crupest <crupest@outlook.com> | 2021-12-13 21:16:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-12-13 21:16:54 +0800 |
commit | 97c691162c39c9d592e418f07a1015f4032c2d86 (patch) | |
tree | 10144378d09a196b191549e8e1d8e155c31bf74c /.github | |
parent | 522cdc4fdbf701fe4ace02af5e891f884f14dc25 (diff) | |
download | cru-97c691162c39c9d592e418f07a1015f4032c2d86.tar.gz cru-97c691162c39c9d592e418f07a1015f4032c2d86.tar.bz2 cru-97c691162c39c9d592e418f07a1015f4032c2d86.zip |
...
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos-ci.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml new file mode 100644 index 00000000..0c795fa3 --- /dev/null +++ b/.github/workflows/macos-ci.yml @@ -0,0 +1,42 @@ +name: macOS CI + +on: + push: + branches: [master] + paths-ignore: + - "docs/**" + - "**/README.md" + pull_request: + branches: [master] + paths-ignore: + - "docs/**" + - "**/README.md" + +jobs: + build: + name: Build + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Restore Cache + uses: actions/cache@v2 + with: + path: ~/.cache/vcpkg/archives + key: vcpkg-${{ runner.os }} + + - name: Setup Ninja + uses: ashutoshvarma/setup-ninja@master + with: + version: 1.10.2 + + - name: Build + run: | + cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -H. -B./build -G Ninja + cmake --build /Users/crupest/codes/cru/build --config Debug --target all + + - name: Test + working-directory: build + run: | + ctest -C Debug -T test --output-on-failure |