Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action: auto build release packages #1239

Open
YamatoSecurity opened this issue Dec 19, 2023 · 0 comments · May be fixed by #1246
Open

Github action: auto build release packages #1239

YamatoSecurity opened this issue Dec 19, 2023 · 0 comments · May be fixed by #1246
Assignees

Comments

@YamatoSecurity
Copy link
Collaborator

It would be nice to be able to manually build release packages with github actions for the following architectures:

  • Intel Mac 64 bit (hayabusa-x.x.x-mac-intel)
  • Arm Mac 64 bit (hayabusa-x.x.x-mac-arm)
  • Intel Win 32 bit (hayabusa-x.x.x-win-x86.exe)
  • Intel Win 64 bit (hayabusa-x.x.x-win-x64.exe)
  • Arm Win 64 bit (hayabusa-x.x.x-win-arm.exe)
  • Intel Linux 64 bit GNU (hayabusa-x.x.x-lin-intel-gnu)
  • Intel Linux 64 bit MUSL (hayabusa-x.x.x-lin-intel-musl)
  • Arm Linux 64 bit GNU (hayabusa-x.x.x-lin-arm-gnu)
  • Arm Linux 64 bit MUSL (hayabusa-x.x.x-lin-arm-musl)

After compiling with cargo build --release, I rename target/release/hayabusa-hogehoge.exe to the executable names listed above, then run cargo clean to delete the unneeded files. I then run the update-rules command to get the latest rules and config files.
After that, I delete the following files and directories as they are not needed to run:

  • .cargo/
  • .github/
  • doc/
  • screenshots/
  • src/
  • test_files/
  • .codecov.yml
  • .env.example
  • .gitignore
  • .gitmodules
  • Cargo.lock
  • Cargo.toml

After that we would need to zip up the directory into the following zip files to make available for release:

  • Intel Mac 64 bit (hayabusa-x.x.x-mac-intel.zip)
  • Arm Mac 64 bit (hayabusa-x.x.x-mac-arm.zip)
  • Intel Win 32 bit (hayabusa-x.x.x-win-intel-32-bit.zip)
  • Intel Win 64 bit (hayabusa-x.x.x-win-intel-64-bit.zip)
  • Arm Win 64 bit (hayabusa-x.x.x-win-arm.zip)
  • Intel Linux 64 bit GNU (hayabusa-x.x.x-lin-intel-gnu.zip)
  • Intel Linux 64 bit MUSL (hayabusa-x.x.x-lin-intel-musl.zip)
  • Arm Linux 64 bit GNU (hayabusa-x.x.x-lin-arm-gnu.zip)
  • Arm Linux 64 bit MUSL (hayabusa-x.x.x-lin-arm-musl.zip)
@hitenkoku hitenkoku linked a pull request Jan 10, 2024 that will close this issue
@hitenkoku hitenkoku self-assigned this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants