From 03a0837c50bde3be1fb07c9fb1499fa0e47e0bb0 Mon Sep 17 00:00:00 2001 From: Hidde de Jong Date: Fri, 22 Jan 2021 20:57:45 +0100 Subject: [PATCH 1/4] Rename CI workflow to Release --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a5d0f3f..371f3470 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: CI +name: Release on: [push, pull_request] From d0c1b8f0885caeb9b094cd0609fca496bdd1dd58 Mon Sep 17 00:00:00 2001 From: Hidde de Jong Date: Fri, 22 Jan 2021 20:57:29 +0100 Subject: [PATCH 2/4] Only run Release workflow on workflow_dispatch --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 371f3470..eccb1943 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: Release -on: [push, pull_request] +on: + workflow_dispatch: jobs: package: From c72783b8e5e2600fc0146a6e11a958cf300530ed Mon Sep 17 00:00:00 2001 From: Hidde de Jong Date: Fri, 22 Jan 2021 21:04:17 +0100 Subject: [PATCH 3/4] Add test workflow --- .github/workflows/test.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..48d9ee5b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,46 @@ +name: Test + +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop + workflow_dispatch: + +jobs: + test: + name: Build and test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + fetch-depth: '0' + + - name: Configure macOS + if: matrix.os == 'macos-latest' + run: mkdir build && cd build && cmake -G Xcode .. + + - name: Configure Windows + if: matrix.os == 'windows-latest' + run: mkdir build && cd build && cmake .. + + - name: Build Debug + run: cmake --build build --config 'Debug' + + - name: Test Debug + run: cd build && ctest -C 'Debug' . -V + + - name: Build Release + run: cmake --build build --config 'Release' + + - name: Test Release + run: cd build && ctest -C 'Release' . -V From 6130f945ce3cb4589c2495d96f11086b1b56a642 Mon Sep 17 00:00:00 2001 From: Hidde de Jong Date: Wed, 27 Jan 2021 21:16:57 +0100 Subject: [PATCH 4/4] Build with latest Xcode --- .github/workflows/main.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eccb1943..5b89624a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,11 +17,6 @@ jobs: submodules: 'recursive' fetch-depth: '0' - - uses: maxim-lobanov/setup-xcode@v1 - if: matrix.os == 'macos-latest' - with: - xcode-version: '11.7' - - uses: benjlevesque/short-sha@v1.2 id: short-sha with: