File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Build patchable
3+
4+ on :
5+ pull_request :
6+ paths :
7+ - " .github/workflows/patchable_pr.yaml"
8+ - " rust-toolchain.toml"
9+ - " rust/patchable/**.rs"
10+ - " Cargo.*"
11+
12+ permissions :
13+ contents : read
14+
15+ env :
16+ RUST_VERSION : 1.89.0
17+
18+ jobs :
19+ # This job is always run to ensure we don't miss any new upstream advisories
20+ cargo-deny :
21+ name : Run cargo-deny
22+ runs-on : ubuntu-latest
23+ # Prevent sudden announcement of a new advisory from failing CI
24+ continue-on-error : ${{ matrix.checks == 'advisories' }}
25+ strategy :
26+ matrix :
27+ checks :
28+ - advisories
29+ - bans licenses sources
30+ steps :
31+ - name : Checkout Repository
32+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33+ with :
34+ persist-credentials : false
35+
36+ - name : Run cargo-deny
37+ uses : EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15
38+ with :
39+ command : check ${{ matrix.checks }}
40+
41+ build :
42+ name : Build patchable
43+ needs :
44+ - cargo-deny
45+ strategy :
46+ fail-fast : false
47+ matrix :
48+ targets :
49+ - { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm }
50+ - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
51+ - { target: aarch64-apple-darwin, os: macos-latest }
52+ runs-on : ${{ matrix.targets.os }}
53+ steps :
54+ - name : Checkout
55+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
56+ with :
57+ persist-credentials : false
58+
59+ - uses : dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921
60+ with :
61+ toolchain : ${{ env.RUST_VERSION }}
62+ targets : ${{ matrix.targets.target }}
63+
64+ - name : Build Binary
65+ env :
66+ TARGET : ${{ matrix.targets.target }}
67+ run : cargo build --target "$TARGET" --package patchable
You can’t perform that action at this time.
0 commit comments