-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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