Skip to content

jreleaser/helloworld-rustx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helloworld in Rust

This repository shows how to configure GitHub Actions and JReleaser to:

  • compile a helloworld app for the followign targets:

    • aarch64-apple-darwin

    • x86_64-apple-darwin

    • x86_64-pc-windows-msvc

    • x86_64-unknown-linux-gnu

  • use cross to compile for aarch64-unknown-linux-gnu

  • use lipo to generate an universal binary for apple-darwin

  • assemble zip distributions with JReleaser

  • create rolling early-acces releases with JReleaser on every push to main branch

Original code based on Releasing Rust Binaries with JReleaser.

Cross compilation and universal setup based on https://github.com/manojkarthick/jreleaser-poc by @manojkarthick.

JReleaser requires 2 additional inputs that may be set as environment variables, JRELEASER_PROJECT_VERSION and JRELEASER_GITHUB_TOKEN. More information about environment variable configuration may be found in the guide.