Skip to content
package

GitHub Action

rust-build.action

v0.1.2 Latest version

rust-build.action

package

rust-build.action

Packages your rust builds into a .exe, .app and the one for linux

Installation

Copy and paste the following snippet into your .yml file.

              

- name: rust-build.action

uses: imyanice/[email protected]

Learn more about this action in imyanice/rust-build.action

Choose a version

rust-build.action

Packages & build (soon:tm:) your rust builds for your desired targets (macos, windows (soon), linux (soon).)

Usage

Have a look at this configuration: https://github.com/imyanice/pomodoro-timer/blob/main/.github/workflows/build.yml. Kinda yonkie but you get the point build.yml:

- uses: imyanice/rust-build.action@latest
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
      tagName: app-v__VERSION__ # The action replaces __VERSION__ with your version.
      releaseName: 'App v__VERSION__'
      targets: 'aarch64-apple-darwin,x86_64-apple-darwin' # the two supported for now
      srcDir: './'

BUT! You also need a Cargo.toml config!

Here is an example:

[rust-build.action]
identifier = "me.yanice.pomodoro-timer"
category = "public.app-category.utilities"
copyright = "© 2024 Yanice (imyanice)."
icon = "icons/icon.png"
displayName = "Pomodoro Timer"

License

GPL-v3.0