Skip to content

Build

Build #309

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Enable Rust Caching
uses: Swatinem/rust-cache@v2
- name: Install wasm-pack binary
run: |
wget -O wasm.tar.gz https://github.com/rustwasm/wasm-pack/releases/download/v0.10.2/wasm-pack-v0.10.2-x86_64-unknown-linux-musl.tar.gz
tar -xvf wasm.tar.gz
sudo mv -v wasm*/wasm-pack /usr/bin/
rm -rv wasm.tar.gz wasm-pack-*
- name: Clippy
run: |
cargo clippy -- -D warnings
- name: Clippy without default features
run: |
cargo clippy --no-default-features -- -D warnings
- name: Audit
run: cargo audit
- name: Cargo Build
run: cargo build --workspace
- name: Cargo Test
run: cargo test --verbose
- name: Web Test
run: wasm-pack test --headless --firefox
# Temporarily disable semver check
#- name: Check semver
# uses: obi1kenobi/cargo-semver-checks-action@v2
# with:
# package: tagged-base64