Skip to content

Commit e4c0fc4

Browse files
authored
Merge pull request #5 from arturo-lang/add-extra-parameter-for-arturo-origin
Add extra parameter for Arturo binary origin
2 parents 2b9d31a + 1416c2d commit e4c0fc4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Based on the runner and the specified OS/architecture, the action will compile a
4949
|--------|-------------|
5050
| os | target OS (linux, windows, macos, freebsd) - defaults to auto-detect from runner |
5151
| arch | target architecture (amd64, arm64, native) - defaults to `'native'` (auto-detect from runner) |
52+
| from | Arturo source to use: `'stable'` (official release), `'latest'` (nightly), `'master'` (compile from source) - defaults to `'stable'` |
5253
| target | change the name of the final binary (default: `'auto'` = use the same name as the entry script) |
5354
| 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: `''`) |
5455
| release | prepare for release: creates a `.zip` archive with the binary (default: `'false'`) |

action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ inputs:
1818
The architecture to build for.
1919
(one of: 'amd64', 'arm64', 'native')
2020
default: 'native'
21+
from:
22+
description: >-
23+
Arturo source (stable, latest, master).
24+
stable = latest official release, latest = nightly, master = compile from source.
25+
default: 'stable'
2126
entry:
2227
description: >-
2328
Entry file for the executable.
@@ -85,6 +90,8 @@ runs:
8590
token: ${{ inputs.token }}
8691
os: ${{ env.os }}
8792
arch: ${{ env.arch }}
93+
do: ${{ inputs.from == 'master' && 'compile' || 'fetch' }}
94+
from: ${{ inputs.from == 'master' && 'stable' || inputs.from }}
8895

8996
- name: Install Nim (Linux)
9097
if: env.os == 'linux'

0 commit comments

Comments
 (0)