-
Notifications
You must be signed in to change notification settings - Fork 27
47 lines (38 loc) · 1.01 KB
/
pr.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
42
43
44
45
46
47
name: pr
on:
pull_request:
branches:
- "main"
jobs:
artifact:
permissions:
contents: write
pull-requests: write
name: artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.72 \
--profile minimal \
--target wasm32-unknown-unknown \
--no-self-update
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Install Deps
run: make install-prod
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build wasm
run: |
cargo generate-lockfile
make ci-build
- name: Pull request artifacts
uses: gavv/pull-request-artifacts@v2
with:
commit: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
artifacts-branch: artifacts
artifacts: |
wasm_codes.zip