forked from anza-xyz/pinocchio
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (71 loc) · 1.87 KB
/
main.yml
File metadata and controls
89 lines (71 loc) · 1.87 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Main
on:
push:
branches: [main]
pull_request:
env:
CACHE: true
jobs:
sanity:
name: Process Workspace
runs-on: ubuntu-latest
outputs:
members: ${{ steps.filter.outputs.members }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup Environment
uses: ./.github/actions/setup
with:
cargo-cache-key: cargo-audit
toolchain: lint
components: audit, miri
- name: cargo-audit
run: pnpm cargo-audit
- name: cargo-miri
run: pnpm miri
- name: Filter members
id: filter
run: pnpm tsx ./scripts/setup/members.mts
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Setup Environment
uses: ./.github/actions/setup
with:
cargo-cache-key: cargo-spellcheck
components: spellcheck
- name: cargo-spellcheck
run: pnpm spellcheck
process:
name: Check
needs: sanity
runs-on: ubuntu-latest
strategy:
matrix:
member: ${{ fromJson(needs.sanity.outputs.members) }}
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Setup Environment
uses: ./.github/actions/setup
with:
cargo-cache-key: cargo-${{ matrix.member }}
toolchain: build, format, lint, test
components: hack
solana: true
- name: fmt
run: pnpm format ${{ matrix.member }}
- name: clippy
run: pnpm clippy ${{ matrix.member }}
- name: cargo-doc
run: pnpm doc ${{ matrix.member }}
- name: cargo-hack
run: pnpm hack ${{ matrix.member }}
- name: build-sbf
run: pnpm build-sbf ${{ matrix.member }}
- name: test
run: pnpm test ${{ matrix.member }}