diff options
author | crupest <crupest@outlook.com> | 2022-01-17 01:49:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-17 01:49:37 +0800 |
commit | 1d929ee2e71e8e18490ed1266175833e6ad5c609 (patch) | |
tree | 21ff8f4ff33b4bc570e3adc99f54a972bfa23dbd /.github | |
parent | 570e95f4551385a81eb2cf6f2e386e3b0cb291a8 (diff) | |
download | cru-1d929ee2e71e8e18490ed1266175833e6ad5c609.tar.gz cru-1d929ee2e71e8e18490ed1266175833e6ad5c609.tar.bz2 cru-1d929ee2e71e8e18490ed1266175833e6ad5c609.zip |
...
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml (renamed from .github/workflows/macos-ci.yml) | 35 | ||||
-rw-r--r-- | .github/workflows/windows-ci.yml | 41 |
2 files changed, 31 insertions, 45 deletions
diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/ci.yml index f46cd156..670a26ca 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/ci.yml @@ -1,19 +1,19 @@ -name: macOS CI +name: CI on: push: - branches: [master] + branches: [main] paths-ignore: - "docs/**" - "**/README.md" pull_request: - branches: [master] + branches: [main] paths-ignore: - "docs/**" - "**/README.md" jobs: - build: + macos-build: name: Build runs-on: macos-latest @@ -40,3 +40,30 @@ jobs: working-directory: build run: | ctest -C Debug -T test --output-on-failure + + windows-build: + name: Build + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Restore Cache + uses: actions/cache@v2 + with: + path: ~/AppData/Local/vcpkg/archives + key: vcpkg-${{ runner.os }} + + - name: Setup Ninja + uses: ashutoshvarma/setup-ninja@master + with: + version: 1.10.2 + + - name: Run build script + shell: pwsh + run: | + . ./tools/Use-VC.ps1 + Use-VC + mkdir build && cd build + cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Debug + ninja all diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml deleted file mode 100644 index 4a3be7cf..00000000 --- a/.github/workflows/windows-ci.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Windows 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: windows-latest - - steps: - - uses: actions/checkout@v2 - - - name: Restore Cache - uses: actions/cache@v2 - with: - path: ~/AppData/Local/vcpkg/archives - key: vcpkg-${{ runner.os }} - - - name: Setup Ninja - uses: ashutoshvarma/setup-ninja@master - with: - version: 1.10.2 - - - name: Run build script - shell: pwsh - run: | - . ./tools/Use-VC.ps1 - Use-VC - mkdir build && cd build - cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Debug - ninja all |