-
-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (41 loc) · 1.46 KB
/
Copy pathci-wasm.yml
File metadata and controls
47 lines (41 loc) · 1.46 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
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.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