-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (34 loc) · 787 Bytes
/
ci.yaml
File metadata and controls
44 lines (34 loc) · 787 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: |
rustup target add wasm32-unknown-unknown
- name: Build
run: cargo build --release
publish:
needs:
- build
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/publish.yaml
secrets: inherit