-
Notifications
You must be signed in to change notification settings - Fork 16
67 lines (56 loc) · 1.59 KB
/
verify.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
56
57
58
59
60
61
62
63
64
65
66
67
name: Verify
on:
pull_request:
branches: [main]
workflow_call:
secrets:
MALACHITE_PRIVATE_REPO_SSH_KEY:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
MALACHITE_GIT_REF: "8a9f3702eb41199bc8a7f45139adba233a04744a"
jobs:
build:
timeout-minutes: 20
runs-on:
- runs-on=${{ github.run_id }}
- runner=64cpu-linux-arm64
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }}
- name: Build via Docker Compose, exposing SSH agent to build container
run: docker compose build --ssh default
test:
timeout-minutes: 20
runs-on:
- runs-on=${{ github.run_id }}
- runner=64cpu-linux-arm64
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: actions/checkout@v4
with:
repository: farcasterxyz/malachite
ref: ${{ env.MALACHITE_GIT_REF }}
path: ./malachite
ssh-key: ${{ secrets.MALACHITE_PRIVATE_REPO_SSH_KEY }}
- uses: actions/checkout@v4
with:
path: ./snapchain
- working-directory: ./snapchain
env:
RUSTFLAGS: "-Dwarnings"
run: cargo test
- working-directory: ./snapchain
env:
RUSTFLAGS: "-Dwarnings"
run: cargo build --bins
- working-directory: ./snapchain
env:
RUSTFLAGS: "-Dwarnings"
run: cargo fmt --all --check