Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Based on the runner and the specified OS/architecture, the action will compile a
|--------|-------------|
| os | target OS (linux, windows, macos, freebsd) - defaults to auto-detect from runner |
| arch | target architecture (amd64, arm64, native) - defaults to `'native'` (auto-detect from runner) |
| from | Arturo source to use: `'stable'` (official release), `'latest'` (nightly), `'master'` (compile from source) - defaults to `'stable'` |
| 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: `''`) |
| release | prepare for release: creates a `.zip` archive with the binary (default: `'false'`) |
Expand Down
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ inputs:
The architecture to build for.
(one of: 'amd64', 'arm64', 'native')
default: 'native'
from:
description: >-
Arturo source (stable, latest, master).
stable = latest official release, latest = nightly, master = compile from source.
default: 'stable'
entry:
description: >-
Entry file for the executable.
Expand Down Expand Up @@ -85,6 +90,8 @@ runs:
token: ${{ inputs.token }}
os: ${{ env.os }}
arch: ${{ env.arch }}
do: ${{ inputs.from == 'master' && 'compile' || 'fetch' }}
from: ${{ inputs.from == 'master' && 'stable' || inputs.from }}

- name: Install Nim (Linux)
if: env.os == 'linux'
Expand Down