Skip to content

Commit 9cc3243

Browse files
committed
run tests on mac and linux
1 parent 72348e0 commit 9cc3243

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ env:
1616
jobs:
1717
test:
1818
name: Test
19-
runs-on: "ubuntu-latest"
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- { os: "ubuntu-latest", wasiSDK: "linux" }
24+
- { os: "macos-latest", wasiSDK: "macos" }
25+
runs-on: ${{ matrix.config.os }}
2026
steps:
2127
- name: Checkout
2228
uses: actions/checkout@v3
2329
with:
24-
submodules: 'recursive'
30+
submodules: "recursive"
2531

2632
- name: Install latest Rust stable toolchain
2733
uses: actions-rs/toolchain@v1
@@ -53,8 +59,8 @@ jobs:
5359
shell: bash
5460
run: |
5561
cd /tmp
56-
curl -LO https://github.com/dicej/wasi-sdk/releases/download/${WASI_SDK_RELEASE}/wasi-sdk-${WASI_SDK_VERSION}-linux.tar.gz
57-
tar xf wasi-sdk-${WASI_SDK_VERSION}-linux.tar.gz
62+
curl -LO https://github.com/dicej/wasi-sdk/releases/download/${WASI_SDK_RELEASE}/wasi-sdk-${WASI_SDK_VERSION}-${{ matrix.config.wasiSDK }}.tar.gz
63+
tar xf wasi-sdk-${WASI_SDK_VERSION}-${{ matrix.config.wasiSDK }}.tar.gz
5864
mv wasi-sdk-${WASI_SDK_VERSION} /opt/wasi-sdk
5965
6066
- name: Cache CPython

0 commit comments

Comments
 (0)