Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.49.11 to 2.49.15. - [Release notes](https://github.com/taiki-e/install-action/releases) - [Commits](https://github.com/taiki-e/install-action/compare/v2.49.11...v2.49.15) --- updated-dependencies: - dependency-name: taiki-e/install-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
848 B
YAML
37 lines
848 B
YAML
name: Build and Store WASM
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-upload:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Cache wasm
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: './rust'
|
|
- uses: taiki-e/install-action@955a6ff1416eae278c9f833008a9beb4b7f9afe3
|
|
with:
|
|
tool: wasm-pack
|
|
- name: build wasm
|
|
run: yarn build:wasm
|
|
|
|
|
|
# Upload the WASM bundle as an artifact
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wasm-bundle
|
|
path: rust/kcl-wasm-lib/pkg
|