Skip to content

test browser version #18

test browser version

test browser version #18

Workflow file for this run

name: ci
on:
push:
branches:
- main
permissions:
contents: write
pages: write
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used
- name: Build wasm
run: cargo build --release --target wasm32-unknown-unknown
- name: Prepare deploy dir
run: |
mkdir -p ./deploy
cp ./target/wasm32-unknown-unknown/release/tuco.wasm ./deploy/
cp index.html ./deploy/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deploy