From 770d0dbdcdc1e54f66c2ed2c8855a2f9cf2af61a Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 13 Dec 2021 21:20:27 +0800 Subject: ... --- .github/workflows/ci.yml | 43 ---------------------------------------- .github/workflows/windows-ci.yml | 41 ++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 42 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/windows-ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 599e59fc..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: CI - -on: - push: - branches: [master] - paths-ignore: - - "docs/**" - - "drafts/**" - - "**/README.md" - pull_request: - branches: [master] - paths-ignore: - - "docs/**" - - "drafts/**" - - "**/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 diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml new file mode 100644 index 00000000..4a3be7cf --- /dev/null +++ b/.github/workflows/windows-ci.yml @@ -0,0 +1,41 @@ +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 diff --git a/README.md b/README.md index a6f20461..a1244dee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CruUI -![CI](https://github.com/crupest/CruUI/workflows/CI/badge.svg) +[![macOS CI](https://github.com/crupest/cru/actions/workflows/macos-ci.yml/badge.svg?branch=master)](https://github.com/crupest/cru/actions/workflows/macos-ci.yml) ## overview -- cgit v1.2.3