aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-18 23:25:48 +0800
committercrupest <crupest@outlook.com>2022-01-18 23:25:48 +0800
commiteecd4e5ba96244be15e3be9a9a4d404c36a533c7 (patch)
tree2715b7b3e6297853ebc3933b7302ec47aee99812 /.github
parentbc37fdb4b746ce0f5f5c49ad9779464acb488284 (diff)
downloadcru-eecd4e5ba96244be15e3be9a9a4d404c36a533c7.tar.gz
cru-eecd4e5ba96244be15e3be9a9a4d404c36a533c7.tar.bz2
cru-eecd4e5ba96244be15e3be9a9a4d404c36a533c7.zip
...
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 9 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e54bbcf2..e99fc8b6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,7 +33,7 @@ jobs:
- name: Build
run: |
- cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -H. -B./build -G Ninja
+ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -H. -B./build -G Ninja
cmake --build ./build --config Debug --target all
- name: Test
@@ -59,11 +59,12 @@ jobs:
with:
version: 1.10.2
- - name: Run build script
- shell: pwsh
+ - name: Build
run: |
- . ./tools/Use-VC.ps1
- Use-VC
- mkdir build && cd build
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Debug
- ninja all
+ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -H. -B./build -G Ninja
+ cmake --build ./build --config Debug --target all
+
+ - name: Test
+ working-directory: build
+ run: |
+ ctest -C Debug -T test --output-on-failure