aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranzz1 <anzz1@live.com>2023-03-23 04:20:34 +0200
committerGitHub <noreply@github.com>2023-03-23 04:20:34 +0200
commite4412b45e395981068d2850d3fa04cc16c77d70d (patch)
tree88c3c42eb472e49fc4bab1ec1d128ce9bdaf34d7
parentf7dc43bc0d759732815856183246f167111587ad (diff)
CI: CMake: Separate build and test steps (#376)
* CI: Separate Build and Test steps (CMake) * CI: Make sure build passes before running tests (CMake) * CI: Standardise step id names
-rw-r--r--.github/workflows/build.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6ce9cc7..e9826a7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,19 +41,27 @@ jobs:
steps:
- name: Clone
+ id: checkout
uses: actions/checkout@v1
- name: Dependencies
+ id: depends
run: |
sudo apt-get update
sudo apt-get install build-essential
- name: Build
+ id: cmake_build
run: |
mkdir build
cd build
cmake ..
cmake --build . --config Release
+
+ - name: Test
+ id: cmake_test
+ run: |
+ cd build
ctest --output-on-failure
macOS-latest-make:
@@ -79,18 +87,26 @@ jobs:
steps:
- name: Clone
+ id: checkout
uses: actions/checkout@v1
- name: Dependencies
+ id: depends
run: |
brew update
- name: Build
+ id: cmake_build
run: |
mkdir build
cd build
cmake -DLLAMA_AVX2=OFF ..
cmake --build . --config Release
+
+ - name: Test
+ id: cmake_test
+ run: |
+ cd build
ctest --output-on-failure
windows-latest-cmake:
@@ -108,6 +124,11 @@ jobs:
cd build
cmake ..
cmake --build . --config Release
+
+ - name: Test
+ id: cmake_test
+ run: |
+ cd build
ctest -C Release --output-on-failure
- name: Get commit hash