Skip to content

Commit e607609

Browse files
committed
github actions is a menace to society
1 parent a07c3b1 commit e607609

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ on:
77

88
jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)