-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (39 loc) · 995 Bytes
/
build.yaml
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
# on: [workflow_dispatch, push, pull_request]
on:
workflow_dispatch:
pull_request:
push:
paths-ignore:
- ".github/**"
- "static/**"
- "justfile"
- "README.md"
- "Shuttle.toml"
- ".gitignore"
name: Build
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
rust-toolchain: [stable]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: extractions/setup-just@v1
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
profile: minimal
override: true
- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: rui314/setup-mold@v1
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: Build code
run: just build