Skip to content

Commit

Permalink
Implement CI hack
Browse files Browse the repository at this point in the history
  • Loading branch information
thorio committed Mar 17, 2024
1 parent 1f5ae65 commit 9e18dc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ script = '''
sha=$(git rev-parse --short HEAD)
tag=$(git describe --tags --abbrev=0 --match 'v*' | sed 's/^v//')
sed -i '0,/version/{s/version = ".*"/version = "'$tag+$sha'"/}' Cargo.toml
sed -i '0,/version/{s/version = ".*"/version = "'$tag+$sha'"/}' gravel/Cargo.toml
'''

[tasks.artifact-dropoff]
Expand All @@ -28,7 +29,7 @@ args = ["arch"]

[tasks.arch]
dependencies = ["build-arch"]
script = "mv gravel/*.pkg.tar.zst target/artifacts/gravel-x86_64.pkg.tar.zst"
script = "mv gravel/gravel-0*.pkg.tar.zst target/artifacts/gravel-x86_64.pkg.tar.zst"

[tasks.build-exe]
command = "cargo"
Expand Down
2 changes: 1 addition & 1 deletion gravel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gravel"
version.workspace = true
version = "0.0.0-dev" # patched by CI (hack)
edition.workspace = true
description = "cross-platform run launcher"
readme = "../README.md"
Expand Down

0 comments on commit 9e18dc0

Please sign in to comment.