Skip to content

Commit 8d3935f

Browse files
Reduce ci matrix jobs
1 parent 86ea755 commit 8d3935f

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,35 @@ jobs:
88
name: Build and Test
99
strategy:
1010
matrix:
11-
os: [macos-10.15, macos-11, macos-12, ubuntu-18.04, ubuntu-20.04]
12-
toolchain:
13-
- wasm-5.5.0-RELEASE
14-
- wasm-5.6.0-RELEASE
15-
wasi-backend:
16-
- Node
17-
- Wasmer
18-
runs-on: ${{ matrix.os }}
11+
entry:
12+
# Ensure that all host can install toolchain, build project, and run tests
13+
- { os: macos-10.15, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
14+
- { os: macos-11, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
15+
- { os: macos-12, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
16+
- { os: ubuntu-18.04, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
17+
18+
# Ensure that test succeeds with all toolchains and wasi backend combinations
19+
- { os: ubuntu-20.04, toolchain: wasm-5.5.0-RELEASE, wasi-backend: Node }
20+
- { os: ubuntu-20.04, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
21+
- { os: ubuntu-20.04, toolchain: wasm-5.5.0-RELEASE, wasi-backend: Wasmer }
22+
- { os: ubuntu-20.04, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Wasmer }
23+
24+
runs-on: ${{ matrix.entry.os }}
1925
steps:
2026
- name: Checkout
2127
uses: actions/checkout@master
2228
with:
2329
fetch-depth: 1
2430
- name: Run Test
2531
env:
26-
JAVASCRIPTKIT_WASI_BACKEND: ${{ matrix.wasi-backend }}
32+
JAVASCRIPTKIT_WASI_BACKEND: ${{ matrix.entry.wasi-backend }}
2733
run: |
2834
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
2935
export SWIFTENV_ROOT="$HOME/.swiftenv"
3036
export PATH="$SWIFTENV_ROOT/bin:$PATH"
3137
eval "$(swiftenv init -)"
32-
SWIFT_VERSION=${{ matrix.toolchain }} make bootstrap
33-
echo ${{ matrix.toolchain }} > .swift-version
38+
SWIFT_VERSION=${{ matrix.entry.toolchain }} make bootstrap
39+
echo ${{ matrix.entry.toolchain }} > .swift-version
3440
make test
3541
native-build:
3642
# Check native build to make it easy to develop applications by Xcode

0 commit comments

Comments
 (0)