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+ # Checking all used dependencies for known security vulns.
2+ #
3+ # Only checking on master since new vulns can appear during a PR,
4+ # but it's not that PR's job to fix these vulns right there.
5+ # The issue should only be shown up after merging and a separate PR
6+ # can be created to address the issue(s) then.
7+
8+ name : Audit dependencies
9+ on :
10+ push :
11+ branches : [ master ]
12+ # Also run monthly
13+ schedule :
14+ - cron : ' 0 0 1 * *'
15+ jobs :
16+
17+
18+ audit :
19+ name : Audit
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v3
23+ - uses : actions-rs/toolchain@v1
24+ with :
25+ toolchain : stable
26+ target : armv7-unknown-linux-gnueabihf
27+ profile : minimal
28+ - name : Security Audit
29+ uses : actions-rs/audit-check@v1
30+ with :
31+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Check and build
2+ on : [ push, pull_request ]
3+ jobs :
4+
5+
6+ check :
7+ name : Check
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v5
11+ - uses : actions-rs/cargo@v1
12+ # TODO: Would be nice to get rid of all warnings at some
13+ # point and make this check fail if any are found.
14+ name : Run cargo check
15+ with :
16+ use-cross : true
17+ command : check
18+ args : --target=armv7-unknown-linux-gnueabihf
19+
20+
21+ build_snapshot :
22+ name : Build snapshot
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v5
26+ - uses : actions-rs/cargo@v1
27+ name : Run cargo build --release
28+ with :
29+ use-cross : true
30+ command : build
31+ args : --release --target=armv7-unknown-linux-gnueabihf
32+ - uses : actions/upload-artifact@v4
33+ with :
34+ name : snapshot
35+ path : target/armv7-unknown-linux-gnueabihf/release/chessmarkable
36+
37+
38+ # TODO: Clippy, rustfmt and similar here as well
39+ # See https://actions-rs.github.io/
You can’t perform that action at this time.
0 commit comments