Skip to content

github actions: Install toolchain with rustup #2

github actions: Install toolchain with rustup

github actions: Install toolchain with rustup #2

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: Tests
jobs:
wasm:
runs-on: ubuntu-latest
env:
RUSTFLAGS: ''
CARGO_PROFILE_DEV_DEBUG: '0' # reduce size of target directory
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
- name: WASM pkg
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd ./star-wasm
make build
- name: WASM www
run: |
cd ./star-wasm/www
make