From 0dfbf0fde806159f85578c15d4a72a0d49ed8419 Mon Sep 17 00:00:00 2001 From: Sarat Chandra Date: Fri, 29 Sep 2023 16:57:10 +0530 Subject: [PATCH] feat: Add rlsr.yml and a Justfile. Also add cross compilation to macos & windows. --- .gitignore | 4 ++-- Justfile | 14 ++++++++++++++ rlsr.yml | 28 ++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 Justfile create mode 100644 rlsr.yml diff --git a/.gitignore b/.gitignore index 05ec058..34489da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /target -rlsr.yml -dist/ \ No newline at end of file +dist/ +.envrc diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..65b6cda --- /dev/null +++ b/Justfile @@ -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 \ No newline at end of file diff --git a/rlsr.yml b/rlsr.yml new file mode 100644 index 0000000..d4902b0 --- /dev/null +++ b/rlsr.yml @@ -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"