Bump the deps group with 1 update #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
permissions: | |
id-token: write | |
pages: write | |
env: | |
RUSTFLAGS: --cfg=web_sys_unstable_apis | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
target: wasm32-unknown-unknown | |
- name: Install trunk | |
uses: jetli/[email protected] | |
with: | |
version: latest | |
- name: Install WASM Binary Toolkit | |
run: sudo apt-get install -y binaryen | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: trunk build --release | |
- name: Optimize WASM | |
run: find dist -name "*.wasm" -exec wasm-opt {} -o {} -Oz -c --dae --dce --rse -s 4 --vacuum \; | |
- name: Setup GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/configure-pages@v5 | |
- name: Upload Pages artifact | |
if: github.event_name == 'push' | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist | |
- name: Deploy to GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/deploy-pages@v4 |