Skip to content

Commit 5768f14

Browse files
committed
测试
1 parent 104ebdc commit 5768f14

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,33 @@ jobs:
2828
sudo apt-get install -y gcc-11 g++-11
2929
echo "CC=gcc-11" >> $GITHUB_ENV
3030
echo "CXX=g++-11" >> $GITHUB_ENV
31-
- name: Build-Release
32-
shell: bash
31+
- name: Build-Windows
32+
if: startsWith(matrix.os, 'windows')
3333
run: |
34+
mkdir build
35+
cd build
36+
cmake .. -DCMAKE_USER_MAKE_RULES_OVERRIDE="${{ github.workspace }}/cmake/flags_override.cmake"
37+
cmake --build . --config Release
38+
ctest -V -C Release
39+
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
40+
- name: Build-Linux
41+
if: startsWith(matrix.os, 'ubuntu')
42+
run: |
43+
mkdir build
44+
cd build
45+
cmake ..
46+
cmake --build . --config Release
47+
ctest -V -C Release
48+
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
49+
- name: Build-macosx
50+
if: startsWith(matrix.os, 'macos')
51+
run: |
3452
mkdir build
3553
cd build
3654
if [[ "${{ matrix.platform }}" = darwin-arm64 ]]; then
3755
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
3856
else
39-
cmake .. -DCMAKE_USER_MAKE_RULES_OVERRIDE="${{ github.workspace }}/cmake/flags_override.cmake"
57+
cmake ..
4058
fi
4159
cmake --build . --config Release
4260
ctest -V -C Release

0 commit comments

Comments
 (0)