Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add cross compilation to macos & windows.
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/target | ||
rlsr.yml | ||
dist/ | ||
dist/ | ||
.envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
default: build-linux | ||
|
||
build-linux: | ||
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu | ||
|
||
build-macos: | ||
docker run --rm \ | ||
--volume ${PWD}:/root/src \ | ||
--workdir /root/src \ | ||
joseluisq/rust-linux-darwin-builder:1.72.1 \ | ||
sh -c 'cargo build --release --target aarch64-apple-darwin' | ||
|
||
build-windows: | ||
cross build --target x86_64-pc-windows-gnu --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
releases: | ||
- name: "Release to github" | ||
dist_folder: "./dist" | ||
targets: | ||
github: | ||
owner: "iamd3vil" | ||
repo: "verbump" | ||
checksum: | ||
algorithm: "sha256" | ||
builds: | ||
- command: "just build-linux" | ||
bin_name: "verbump" | ||
artifact: "target/x86_64-unknown-linux-gnu/release/verbump" | ||
name: "verbump-linux-x86_64" | ||
additional_files: | ||
- "README.md" | ||
- command: "just build-windows" | ||
bin_name: "verbump.exe" | ||
artifact: "target/x86_64-pc-windows-gnu/release/verbump.exe" | ||
name: "verbump-windows-x86_64" | ||
additional_files: | ||
- "README.md" | ||
- command: "just build-macos" | ||
bin_name: "verbump_aarch64-apple-darwin" | ||
artifact: "target/aarch64-apple-darwin/release/verbump" | ||
name: "verbump-darwin-aarch64" | ||
additional_files: | ||
- "README.md" |