Skip to content

Commit

Permalink
ci: fix asset upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Nov 3, 2020
1 parent 15854e5 commit fb517f4
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: build
args: --release
command: install
args: --force cargo-make

- name: Build release binaries
uses: actions-rs/cargo@v1
Expand Down
71 changes: 71 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[env]
CFG_RELEASE = { value = "${CARGO_MAKE_RUST_VERSION}", condition = { env_not_set = ["CFG_RELEASE"] } }
CFG_RELEASE_CHANNEL = { value = "${CARGO_MAKE_RUST_CHANNEL}", condition = { env_not_set = ["CFG_RELEASE_CHANNEL"] } }

[tasks.build-bin]
command = "cargo"
args = [
"build",
"--bin",
"rustfmt",
"--bin",
"cargo-fmt",
]

[tasks.build-bins]
command = "cargo"
args = [
"build",
"--bins",
]

[tasks.install]
command = "cargo"
args = [
"install",
"--path",
".",
"--force",
"--locked", # Respect Cargo.lock
]

[tasks.release]
command = "cargo"
args = [
"build",
"--release",
]

[tasks.test]
command = "cargo"
args = [
"test",
]

[tasks.test-all]
dependencies = ["build-bin"]
run_task = { name = ["test", "test-ignored"] }

[tasks.test-ignored]
command = "cargo"
args = [
"test",
"--",
"--ignored",
]

[tasks.b]
alias = "build"

[tasks.bb]
alias = "build-bin"

[tasks.bins]
alias = "build-bins"

[tasks.c]
alias = "check"

[tasks.t]
alias = "test"

0 comments on commit fb517f4

Please sign in to comment.