Skip to content

Commit 7cea222

Browse files
committed
CI(release-rust): update test job to use matrix strategy for OS compatibility
Signed-off-by: fahdfady <fahd.fady212@gmail.com>
1 parent 5fc736d commit 7cea222

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/release-rust.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,29 @@ env:
2020
jobs:
2121
test:
2222
name: Rust Port Tests
23-
runs-on: ubuntu-latest
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os: [macos-latest, ubuntu-latest, windows-latest]
2428
steps:
2529
- name: Check out the repo
2630
uses: actions/checkout@v4
2731
with:
2832
fetch-depth: 0
29-
- name: install metacall
33+
- name: Export XCode SDK Root
34+
if: matrix.os == 'macos-latest'
35+
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
36+
- name: install metacall (${{ matrix.os }})
37+
if: matrix.os != 'windows-latest'
3038
run: curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
39+
40+
- name: install metacall (${{ matrix.os }})
41+
if: matrix.os == 'windows-latest'
42+
run: cmd.exe /c "powershell .\tools\metacall-environment.ps1 $Env:METACALL_INSTALL_OPTIONS"
43+
env:
44+
METACALL_INSTALL_OPTIONS: python nodejs ruby # TODO: Implement NetCore once it works with Windows
45+
3146
- name: Install Rust
3247
uses: actions-rs/toolchain@v1
3348
with:

0 commit comments

Comments
 (0)