Skip to content

Commit

Permalink
Fix Wasm CI (#124)
Browse files Browse the repository at this point in the history
* Fix Wasm CI.

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip
  • Loading branch information
mbrandonw authored Aug 27, 2024
1 parent 96beb10 commit 3788750
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,29 @@ jobs:
- name: Build for static-stdlib
run: CONFIG=${{ matrix.config }} make build-for-static-stdlib

# NB: Downloading the toolchain gets rate-limited by GitHub
# wasm:
# name: Wasm
# runs-on: macos-14
# steps:
# - uses: actions/checkout@v4
# - name: Select Xcode
# run: sudo xcode-select -s /Applications/Xcode_15.4.app
# - name: Select Swift version
# run: echo 'wasm-DEVELOPMENT-SNAPSHOT-2024-07-08-a' > .swift-version
# - name: Build
# run: swift run carton bundle
wasm:
name: SwiftWasm
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- wasm-5.9.2-RELEASE
- wasm-5.10.0-RELEASE
steps:
- name: Cache toolchains
uses: actions/cache@v3
with:
path: ~/Library/Developer/Toolchains
key: ${{ matrix.toolchain }}
- uses: actions/checkout@v4
- uses: bytecodealliance/actions/wasmtime/setup@v1
- uses: swiftwasm/setup-swiftwasm@v1
with:
swift-version: ${{ matrix.toolchain }}
- name: Build tests
run: swift build --triple wasm32-unknown-wasi --build-tests -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
- name: Run tests
run: wasmtime .build/debug/xctest-dynamic-overlayPackageTests.wasm

windows:
name: Windows
Expand Down

0 comments on commit 3788750

Please sign in to comment.