Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.54k stars 70 forks source link

Automate the process of creating new releases #92 #93

Closed Ph0enixKM closed 3 weeks ago

Ph0enixKM commented 4 weeks ago

After some struggles trying to configure this on my own I gave up and got this working with cargo-dist. This automation pipeline works for:

Unfortunately the cargo-dist does not support Linux ARM. That's the only downside.

The installer script has been adjusted to work for the new github actions pipeline. Let me know if you think we can do it better someway.

How to test this:

  1. Fork this repo or import it and merge this branch into master
  2. Update release in Cargo.toml to anything (ex. 1.1.1)
  3. Create a new release with tag that matches the Cargo.toml release.
  4. Wait for the Github Action to finish
  5. Uninstall amber if it's installed already
  6. Run the installer script with updated url variable in install.ab to match your repo url (cargo run setup/install.ab)
  7. Done ✨
Ph0enixKM commented 4 weeks ago

I'll try to compile linux arm in a separate github workflow

Ph0enixKM commented 3 weeks ago

I managed to do this. You can test it one more time if you'd like

Ph0enixKM commented 3 weeks ago

@arapower these version changes won't introduce any breaking changes?

Ph0enixKM commented 3 weeks ago

@arapower All issues are now resolved:

Ph0enixKM commented 3 weeks ago

This PR also introduces a version bump to 0.3.2-alpha

arapower commented 3 weeks ago

@Ph0enixKM I don't have ARM Linux, so I can't verify if the process works properly.

Ph0enixKM commented 3 weeks ago

@arapower if the Linux ARM binary doesn't work for someone then we can adjust it later. It should though as the workflow is using cross-rs to compile it and it doesn't fail.