Skip to content

Commit 7cd4e01

Browse files
committed
Update build-check.yml to include Windows support and pass cmake_args for configuration
1 parent 4840c9e commit 7cd4e01

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build-check.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os:
17-
- ubuntu-latest
18-
- macos-latest
16+
include:
17+
- os: ubuntu-latest
18+
cmake_args: ""
19+
- os: macos-latest
20+
cmake_args: ""
21+
- os: windows-latest
22+
cmake_args: "-A x64"
1923

2024
steps:
2125
- name: Checkout
@@ -45,7 +49,8 @@ jobs:
4549
cmake -S . -B build \
4650
-DCMAKE_BUILD_TYPE=Release \
4751
-DCMAKE_INSTALL_PREFIX="$RUNNER_TEMP/install" \
48-
-DR_HOME="$(R RHOME)"
52+
-DR_HOME="$(R RHOME)" \
53+
${{ matrix.cmake_args }}
4954
5055
- name: Build
51-
run: cmake --build build --parallel
56+
run: cmake --build build --config Release --parallel

0 commit comments

Comments
 (0)