-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Justfile
44 lines (36 loc) · 1.69 KB
/
Justfile
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
default:
cargo build
actions-install-sccache-linux:
python3 scripts/secure_download.py \
https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz \
e6cd8485f93d683a49c83796b9986f090901765aa4feb40d191b03ea770311d8 \
sccache.tar.gz
tar -xvzf sccache.tar.gz
mv sccache-v0.3.0-x86_64-unknown-linux-musl/sccache /home/runner/.cargo/bin/sccache
rm -rf sccache*
chmod +x /home/runner/.cargo/bin/sccache
actions-install-sccache-macos:
python3 scripts/secure_download.py \
https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-apple-darwin.tar.gz \
61c16fd36e32cdc923b66e4f95cb367494702f60f6d90659af1af84c3efb11eb \
sccache.tar.gz
tar -xvzf sccache.tar.gz
mv sccache-v0.3.0-x86_64-apple-darwin/sccache /Users/runner/.cargo/bin/sccache
rm -rf sccache*
chmod +x /Users/runner/.cargo/bin/sccache
actions-install-sccache-windows:
python3 scripts/secure_download.py \
https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-pc-windows-msvc.tar.gz \
f25e927584d79d0d5ad489e04ef01b058dad47ef2c1633a13d4c69dfb83ba2be \
sccache.tar.gz
tar -xvzf sccache.tar.gz
mv sccache-v0.3.0-x86_64-pc-windows-msvc/sccache.exe C:/Users/runneradmin/.cargo/bin/sccache.exe
actions-bootstrap-rust-linux: actions-install-sccache-linux
actions-bootstrap-rust-macos: actions-install-sccache-macos
actions-bootstrap-rust-windows: actions-install-sccache-windows
# Trigger a workflow on a branch.
ci-run workflow branch="ci-test":
gh workflow run {{workflow}} --ref {{branch}}
# Trigger all workflows on a given branch.
ci-run-all branch="ci-test":
just ci-run workspace.yml {{branch}}