File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 build-test :
10+ runs-on : ${{ matrix.os }}
1011 strategy :
1112 matrix :
1213 os : [ ubuntu-latest, windows-latest ]
13- runs-on : ${{ matrix.os }}
14+ include :
15+ - os : windows-latest
16+ cmake-args : -A x64
17+ - os : ubuntu-latest
18+ cmake-args : -G Ninja
1419
1520 steps :
1621 - name : Checkout repository
@@ -20,15 +25,10 @@ jobs:
2025 if : runner.os == 'Linux'
2126 run : sudo apt-get update && sudo apt-get install -y cmake ninja-build g++
2227
23- - name : Install dependencies (Windows)
24- if : runner.os == 'Windows'
25- run : choco install cmake ninja
26-
27- - name : Configure (with tests)
28- run : cmake -B build -G Ninja -DTIMEDURATION_BUILD_TESTS=ON
29-
3028 - name : Build
31- run : cmake --build build
29+ run : |
30+ cmake ${{ matrix.cmake-args }} -B build -DCMAKE_BUILD_TYPE=Release -DTIMEDURATION_BUILD_TESTS=ON
31+ cmake --build build --config Release
3232
3333 - name : Run tests
3434 run : ctest --test-dir build --output-on-failure
Original file line number Diff line number Diff line change 2323 run : cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
2424
2525 - name : Install project to versioned dist/
26- run : cmake --install build --prefix dist/timeduration-cpp-${{ github.ref_name }}
26+ run : cmake --install build --config Release -- prefix dist/timeduration-cpp-${{ github.ref_name }}
2727
2828 - name : Copy README and LICENSE
2929 run : |
You can’t perform that action at this time.
0 commit comments