Skip to content

generated code wasmtime 14.0.4 #12

generated code wasmtime 14.0.4

generated code wasmtime 14.0.4 #12

name: Publish Release(s)
on:
push:
tags:
- "wasm_run-v*"
env:
MELOS_VERSION: "3.1.0"
permissions:
contents: write
discussions: write
jobs:
publish_github_release:
# macOS because we can cross-compile to all other platforms from it
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- run: dart pub global activate melos ${{ env.MELOS_VERSION }} && melos bs
- uses: goto-bus-stop/setup-zig@v2
- uses: KyleMayes/install-llvm-action@v1
with:
version: "15"
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- run: cargo install cargo-wasi
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25b
- name: Build all library binaries
run: melos run build
- name: Build wasm component
run: |
cp packages/dart_wit_component/wasm_wit_component/lib/dart_wit_component.wasm platform-build/dart_wit_component.wasm
cp packages/dart_wit_component/wit/dart-wit-generator.wit platform-build/dart-wit-component.wit
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: platform-build/*