44 pull_request :
55 branches :
66 - master
7+ types : [opened, synchronize]
78
89jobs :
910 build :
1718 - { os: macos-latest, target: darwin, platform: darwin-arm64}
1819 - { os: windows-latest, target: windows, platform: win32-x64 }
1920 steps :
20- - uses : actions/checkout@v2
21+ - uses : nodejs/setup-node@v3
22+ with :
23+ node-version : ' 16'
24+ - uses : actions/checkout@v3
2125 - name : install gcc 11
2226 if : startsWith(matrix.os, 'ubuntu')
2327 run : |
3842 run : |
3943 mkdir build
4044 cd build
41- cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
45+ cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
4246 cmake --build . --config Release
4347 ctest -V -C Release
4448 cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
@@ -48,16 +52,16 @@ jobs:
4852 mkdir build
4953 cd build
5054 if [[ "${{ matrix.platform }}" = darwin-arm64 ]]; then
51- cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
55+ cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
5256 else
53- cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
57+ cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
5458 fi
5559 cmake --build . --config Release
5660 ctest -V -C Release
5761 cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
5862
5963 - name : Upload
60- uses : actions/upload-artifact@v2
64+ uses : actions/upload-artifact@v3
6165 with :
6266 name : ${{ matrix.platform }}
6367 path : ${{ github.workspace }}/artifact/
0 commit comments