Fix Example project build issue (#55) #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
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 --triple wasm32-unknown-wasi ${{ matrix.extra_params }} | |
# Blocked by upstream support for WASM. See https://github.com/apple/swift-testing/issues/228 | |
# - name: test | |
# run: | | |
# swift test --triple wasm32-unknown-wasi ${{ matrix.extra_params }} |