Try tu run this on mac builds #19
This file contains hidden or 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: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build and Test on WebAssembly | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Swift | |
| uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "6.1" | |
| # Wasmtime is required because `swift test` doesn't work for WebAssembly targets. | |
| # For WASM, we must build tests separately and run them with a WASM runtime. | |
| # See: https://book.swiftwasm.org/getting-started/testing.html | |
| - name: Install Wasmtime | |
| uses: bytecodealliance/actions/wasmtime/setup@v1 | |
| with: | |
| version: "29.0.1" | |
| github_token: ${{ github.token }} | |
| - name: Build and Test | |
| run: ./scripts/build-and-test-wasm.sh |