Skip to content

Commit 806806e

Browse files
committed
Add wasm CI support
1 parent b380373 commit 806806e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/wasm.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Wasm
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
wasmer_test:
11+
name: Execute tests on WASM
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
swift_version: ["5.9.1"]
16+
os: [ubuntu-22.04]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: swiftwasm/setup-swiftwasm@v1
21+
with:
22+
swift-version: wasm-${{ matrix.swift_version }}-RELEASE
23+
- name: build
24+
run: |
25+
swift build
26+
- name: test
27+
run: |
28+
swift test

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ OpenSwiftUI is an open source implementation of Apple's [SwiftUI](https://develo
1414
|[![macOS](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/macos.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/macos.yml)|
1515
|[![iOS](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ios.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ios.yml)|
1616
|[![Ubuntu](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ubuntu.yml)|
17+
|[![Wasm](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/wasm.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/wasm.yml)|
1718

1819
The project is for the following purposes:
1920
- Build GUI app on non-Apple platform (eg. Linux & Windows)

0 commit comments

Comments
 (0)