Update dependency ordo-one/package-benchmark to from: "1.31.0" #423
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: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| wasm: | |
| name: WASM (Swift ${{ matrix.config.version }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - version: 6.1 | |
| url: https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.1-RELEASE/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle.zip | |
| checksum: 7550b4c77a55f4b637c376f5d192f297fe185607003a6212ad608276928db992 | |
| sdk: 6.1-RELEASE-wasm32-unknown-wasi | |
| platform: wasm32-unknown-wasi | |
| - version: 6.2.1 | |
| url: https://download.swift.org/swift-6.2.1-release/wasm-sdk/swift-6.2.1-RELEASE/swift-6.2.1-RELEASE_wasm.artifactbundle.tar.gz | |
| checksum: 482b9f95462b87bedfafca94a092cf9ec4496671ca13b43745097122d20f18af | |
| sdk: swift-6.2.1-RELEASE_wasm | |
| platform: wasm32-unknown-wasip1 | |
| build: | |
| - release | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: swift-actions/setup-swift@v2 | |
| id: setup-swiftwasm | |
| with: | |
| swift-version: ${{ matrix.config.version }} | |
| - uses: bytecodealliance/actions/wasmtime/setup@v1 | |
| - name: Install Swift SDK | |
| run: swift sdk install ${{ matrix.config.url }} --checksum ${{ matrix.config.checksum }} | |
| - name: Build for testing | |
| run: | | |
| swift build --build-tests -c ${{ matrix.build }} --swift-sdk ${{ matrix.config.sdk }} -Xswiftc -enable-testing | |
| - name: Test | |
| run: | | |
| wasmtime --dir . .build/${{ matrix.config.platform }}/${{ matrix.build }}/FirebladeECSPackageTests.xctest --testing-library swift-testing |