forked from axiom-crypto/openvm-eth
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.58 KB
/
Copy pathpr.yml
File metadata and controls
63 lines (55 loc) · 1.58 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
name: "PR"
on:
push:
branches:
- "main"
# Disable for now
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
lock-files:
name: "Check lock files"
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Load SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
- name: "Checkout sources"
uses: "actions/checkout@v4"
- name: "Update lock files"
run: |
cargo tree
(cd ./bin/stateless-guest && cargo tree)
- name: "Assert no changes"
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Lock files not up to date"
exit 1
fi
fmt:
name: "Check code format"
runs-on: ["runs-on", "runner=8cpu-linux-x64", "run-id=${{ github.run_id }}"]
steps:
- name: Load SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
- name: "Checkout sources"
uses: "actions/checkout@v4"
- name: "Setup nightly toolchain"
uses: "actions-rs/toolchain@v1"
with:
toolchain: "nightly"
profile: "minimal"
components: "rustfmt"
override: true
- name: "Check Rust format"
run: |
cargo fmt --all -- --check