Skip to content

Commit

Permalink
feat: Add rlsr.yml and a Justfile.
Browse files Browse the repository at this point in the history
Also add cross compilation to macos & windows.
  • Loading branch information
iamd3vil committed Sep 29, 2023
1 parent 97b7b67 commit 0dfbf0f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,3 +1,3 @@
/target
rlsr.yml
dist/
dist/
.envrc
14 changes: 14 additions & 0 deletions 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
28 changes: 28 additions & 0 deletions 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"

0 comments on commit 0dfbf0f

Please sign in to comment.