|
8 | 8 | name: Build and Test
|
9 | 9 | strategy:
|
10 | 10 | 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 }} |
19 | 25 | steps:
|
20 | 26 | - name: Checkout
|
21 | 27 | uses: actions/checkout@master
|
22 | 28 | with:
|
23 | 29 | fetch-depth: 1
|
24 | 30 | - name: Run Test
|
25 | 31 | env:
|
26 |
| - JAVASCRIPTKIT_WASI_BACKEND: ${{ matrix.wasi-backend }} |
| 32 | + JAVASCRIPTKIT_WASI_BACKEND: ${{ matrix.entry.wasi-backend }} |
27 | 33 | run: |
|
28 | 34 | git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
|
29 | 35 | export SWIFTENV_ROOT="$HOME/.swiftenv"
|
30 | 36 | export PATH="$SWIFTENV_ROOT/bin:$PATH"
|
31 | 37 | 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 |
34 | 40 | make test
|
35 | 41 | native-build:
|
36 | 42 | # Check native build to make it easy to develop applications by Xcode
|
|
0 commit comments