Skip to content

An Arturo -> executable binary bundler as a GitHub action

License

Notifications You must be signed in to change notification settings

arturo-lang/bundler

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arturo Bundler

Easily bundle an Arturo app on any GitHub runner/OS

License Build Status



🌵 How do I use it?

The most barebones configuration would be:

- uses: arturo-lang/bundler@main
  with: 
    token: ${{ secrets.GITHUB_TOKEN }}
    entry: yourscript.art

Tip

The entry field represents your app's "entry point" - that is the initial script. Whether it imports other files/scripts or not doesn't matter, since it will - hopefully - be taken care of automatically. Also, you may choose to set the whole folder (in case it's an Arturo package) as the entry point: if it is a package with an info.art file that declares an executable:, it will work as well! 😜

Based on the runner, the action will compile and setup the appropriate, native binary:

runner binary
ubuntu-latest amd64 / Linux
macos-13 amd64 / macOS
macos-latest arm64 (M1) / macOS
windows-latest amd64 / Windows

More options

option description
target change the name of the final binary (default: 'auto' = use the same name as the entry script)
version set version number, to be included in the archive names - in the case of releases, this will be extracted automatically from the release tag (default: '')

🔥 How can I release an app?

With Arturo's bundler and the appropriate setup, you can instantly offer binaries for all major OSes, as part of your GitHub repo's workflows.

But, panic not! We've got you covered! 😉

Actually it's very streamlined and easy:

Note

The configuration you have to complete mainly includes 3 fields:

  • app-name: The name of your binary as it will appear
  • app-entry: The "entry point" of your app (see above^)
  • app-notes: (Optionally) add some description that will appear at the bottom of the release

And done! 💥

Next time you push a new vX.Y.Z tag, a new release will be automatically created, along with all the binaries of your app for Linux/macOS/Windows (and more coming?).

Sounds amazing? It actually is! 🚀

📖 FAQ

I have integrated the Release workflow, but it fails at the very last step!

If you had set up everything properly and come across a Resource not accessible by integration error at the last step, chances are you should simply give the action all necessary privileges.

How? Just go to your repo's Settings page, and then click on Actions. At the very bottom of the page, set your actions to have Read/Write permissions:

set read write permissions

And... ready to rock'n'roll!


License

MIT License

Copyright (c) 2024 Yanis Zafirópulos (aka Dr.Kameleon)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.