mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 08:51:38 +00:00
Migrating to swift wasm on for github actions (#8814)
Migrate to use the native SDK for Wasm that's built for swift
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -530,17 +530,20 @@ jobs:
|
|||||||
build-swift-wasm:
|
build-swift-wasm:
|
||||||
name: Test Swift Wasm
|
name: Test Swift Wasm
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
|
||||||
image: ghcr.io/swiftwasm/carton:0.20.1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: bytecodealliance/actions/wasmtime/setup@v1
|
- uses: swift-actions/setup-swift@v2
|
||||||
- uses: swiftwasm/setup-swiftwasm@v1
|
|
||||||
with:
|
with:
|
||||||
swift-version: "wasm-6.0.2-RELEASE"
|
swift-version: 6.2.1
|
||||||
|
- uses: bytecodealliance/actions/wasmtime/setup@v1
|
||||||
|
- name: Install Swift SDK
|
||||||
|
run: swift sdk install 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
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: tests/swift/Wasm.tests
|
working-directory: tests/swift/Wasm.tests
|
||||||
run: swift run carton test
|
run: |
|
||||||
|
swift sdk list
|
||||||
|
swift build --build-tests --swift-sdk swift-6.2.1-RELEASE_wasm
|
||||||
|
wasmtime --dir . .build/wasm32-unknown-wasip1/debug/FlatBuffers.Test.Swift.WasmPackageTests.xctest
|
||||||
|
|
||||||
build-ts:
|
build-ts:
|
||||||
name: Build TS
|
name: Build TS
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
wasm-6.0.2-RELEASE
|
6.2.1
|
||||||
@@ -24,7 +24,7 @@ let package = Package(
|
|||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(path: "../../.."),
|
.package(path: "../../.."),
|
||||||
.package(url: "https://github.com/swiftwasm/carton", exact: "1.1.2"),
|
.package(url: "https://github.com/swiftwasm/WasmKit", exact: "0.1.6")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(name: "Wasm"),
|
.target(name: "Wasm"),
|
||||||
|
|||||||
Reference in New Issue
Block a user