Skip to content

Commit fb517f4

Browse files
ci: fix asset upload workflow
1 parent 15854e5 commit fb517f4

File tree

2 files changed

+73
-2
lines changed

2 files changed

+73
-2
lines changed

.github/workflows/upload-assets.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Install cargo-make
3838
uses: actions-rs/cargo@v1
3939
with:
40-
command: build
41-
args: --release
40+
command: install
41+
args: --force cargo-make
4242

4343
- name: Build release binaries
4444
uses: actions-rs/cargo@v1

Makefile.toml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[env]
2+
CFG_RELEASE = { value = "${CARGO_MAKE_RUST_VERSION}", condition = { env_not_set = ["CFG_RELEASE"] } }
3+
CFG_RELEASE_CHANNEL = { value = "${CARGO_MAKE_RUST_CHANNEL}", condition = { env_not_set = ["CFG_RELEASE_CHANNEL"] } }
4+
5+
[tasks.build-bin]
6+
command = "cargo"
7+
args = [
8+
"build",
9+
"--bin",
10+
"rustfmt",
11+
"--bin",
12+
"cargo-fmt",
13+
]
14+
15+
[tasks.build-bins]
16+
command = "cargo"
17+
args = [
18+
"build",
19+
"--bins",
20+
]
21+
22+
[tasks.install]
23+
command = "cargo"
24+
args = [
25+
"install",
26+
"--path",
27+
".",
28+
"--force",
29+
"--locked", # Respect Cargo.lock
30+
]
31+
32+
[tasks.release]
33+
command = "cargo"
34+
args = [
35+
"build",
36+
"--release",
37+
]
38+
39+
[tasks.test]
40+
command = "cargo"
41+
args = [
42+
"test",
43+
]
44+
45+
[tasks.test-all]
46+
dependencies = ["build-bin"]
47+
run_task = { name = ["test", "test-ignored"] }
48+
49+
[tasks.test-ignored]
50+
command = "cargo"
51+
args = [
52+
"test",
53+
"--",
54+
"--ignored",
55+
]
56+
57+
[tasks.b]
58+
alias = "build"
59+
60+
[tasks.bb]
61+
alias = "build-bin"
62+
63+
[tasks.bins]
64+
alias = "build-bins"
65+
66+
[tasks.c]
67+
alias = "check"
68+
69+
[tasks.t]
70+
alias = "test"
71+

0 commit comments

Comments
 (0)