-
-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (46 loc) · 1.81 KB
/
ci-wasm.yml
File metadata and controls
52 lines (46 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: WASM
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
wasm:
name: WASM (Swift ${{ matrix.config.version }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
config:
- version: 6.1
url: https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.1-RELEASE/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle.zip
checksum: 7550b4c77a55f4b637c376f5d192f297fe185607003a6212ad608276928db992
sdk: 6.1-RELEASE-wasm32-unknown-wasi
platform: wasm32-unknown-wasi
- version: 6.2.1
url: https://download.swift.org/swift-6.2.1-release/wasm-sdk/swift-6.2.1-RELEASE/swift-6.2.1-RELEASE_wasm.artifactbundle.tar.gz
checksum: 482b9f95462b87bedfafca94a092cf9ec4496671ca13b43745097122d20f18af
sdk: swift-6.2.1-RELEASE_wasm
platform: wasm32-unknown-wasip1
build:
- release
steps:
- uses: actions/checkout@v6
- uses: swift-actions/setup-swift@v2
id: setup-swiftwasm
with:
swift-version: ${{ matrix.config.version }}
- uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Install Swift SDK
run: swift sdk install ${{ matrix.config.url }} --checksum ${{ matrix.config.checksum }}
- name: Build for testing
run: |
swift build --build-tests -c ${{ matrix.build }} --swift-sdk ${{ matrix.config.sdk }} -Xswiftc -enable-testing
- name: Test
run: |
wasmtime --dir . .build/${{ matrix.config.platform }}/${{ matrix.build }}/FirebladeECSPackageTests.xctest --testing-library swift-testing