Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Create jekyll-gh-pages.yml #13

Create jekyll-gh-pages.yml

Create jekyll-gh-pages.yml #13

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name : install rust nightly
run : |
rustup toolchain install nightly-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: install wasm-pack
run: cargo install wasm-pack --force
- name: Build
run: wasm-pack build --release --target web --out-dir www/pkg/ --verbose