Use https for dependency instead of ssh #58
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: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Use Swift 6.0.3 to match the pinned SDK version in build-and-test-wasm.sh | |
| # The script will automatically install the 6.0.3-RELEASE WASM SDK | |
| - 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: "40.0.2" | |
| github_token: ${{ github.token }} | |
| - name: Build and Test | |
| run: ./scripts/build-and-test-wasm.sh |