aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-07 21:05:15 +0800
committerJia Tan <jiat0218@gmail.com>2023-01-07 21:15:18 +0800
commit8d372bd94066b1a5b0570b2550f83c2868486adf (patch)
tree97ac9264e5250403717bb3e525a6769fa5580c6c
parentCI/CD: Reduce job runners to 4 instead of using matrix strategy. (diff)
downloadxz-8d372bd94066b1a5b0570b2550f83c2868486adf.tar.xz
CI/CD: Split CMake Linux and MacOS build phase to build and test.
The phase split was only done for Autotools before, so should also apply to CMake.
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4a46e256..a1ef1f3b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -82,7 +82,9 @@ jobs:
- name: Install Dependencies
run: sudo apt-get install -y build-essential cmake
- name: Build
- run: ./build-aux/ci_build.sh -b cmake
+ run: ./build-aux/ci_build.sh -b cmake -p build
+ - name: Test
+ run: ./build-aux/ci_build.sh -b cmake -p test
MacOS-Autotools:
runs-on: macos-latest
@@ -139,5 +141,7 @@ jobs:
- name: Install Dependencies
run: brew install cmake
- name: Build
- run: ./build-aux/ci_build.sh -b cmake
+ run: ./build-aux/ci_build.sh -b cmake -p build
+ - name: Test
+ run: ./build-aux/ci_build.sh -b cmake -p test
\ No newline at end of file