Skip to content

Commit

Permalink
Add wasm CI support (#27)
Browse files Browse the repository at this point in the history
* Add wasm CI support

* Add more swift versions for wasm

swift-wasm 5.9.1 will encounter a compiler crash for Parameter Packs

See swiftwasm/swift#5563

* Fix the upstream compiler error
  • Loading branch information
Kyle-Ye committed Jan 28, 2024
1 parent 921d3de commit 366262f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Wasm

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
wasmer_test:
name: Execute tests on WASM
strategy:
fail-fast: false
matrix:
swift_version: ["wasm-5.9.1-RELEASE", "wasm-DEVELOPMENT-SNAPSHOT-2024-01-22-a"]
os: [ubuntu-22.04]
include:
- swift_version: "wasm-5.9.1-RELEASE"
extra_params: "-Xswiftc -Xfrontend -Xswiftc -disable-round-trip-debug-types" # https://github.com/swiftwasm/swift/issues/5563#issuecomment-1913533592
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: swiftwasm/setup-swiftwasm@v1
with:
swift-version: ${{ matrix.swift_version }}
- name: build
run: |
swift build ${{ matrix.extra_params }}
# - name: test
# run: |
# swift test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ OpenSwiftUI is an open source implementation of Apple's [SwiftUI](https://develo
|[![macOS](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/macos.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/macos.yml)|
|[![iOS](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ios.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ios.yml)|
|[![Ubuntu](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/ubuntu.yml)|
|[![Wasm](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/wasm.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenSwiftUI/actions/workflows/wasm.yml)|

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

0 comments on commit 366262f

Please sign in to comment.