forked from enso-org/enso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
51 lines (48 loc) · 1.82 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Setup Enso Build"
description: "Installs enso-build tool."
inputs:
clean:
description: Whether the repository should be cleaned.
required: true
default: "false"
# enso_ref:
# description: Reference to be cheked out in the Enso repository.
# required: false
# default: ''
runs:
using: "composite"
steps:
- name: Setup conda (GH runners only)
uses: s-weigand/[email protected]
if: startsWith(runner.name, 'GitHub Actions') || startsWith(runner.name, 'Hosted Agent') # GitHub-hosted runner.
with:
update-conda: false
conda-channels: anaconda, conda-forge
- name: Install wasm-pack (macOS GH runners only)
env:
WASMPACKURL: https://github.com/rustwasm/wasm-pack/releases/download/v0.10.3
WASMPACKDIR: wasm-pack-v0.10.3-x86_64-apple-darwin
run: |-
curl -L "$WASMPACKURL/$WASMPACKDIR.tar.gz" | tar -xz -C .
mv $WASMPACKDIR/wasm-pack ~/.cargo/bin
rm -r $WASMPACKDIR
shell: bash
if: startsWith(runner.name, 'GitHub Actions') || startsWith(runner.name, 'Hosted Agent') # GitHub-hosted runner.
# - uses: actions/checkout@v3
# name: Checkout the repository
# with:
# clean: ${{ inputs.clean }}
# Runs a set of commands using the runners shell
- uses: actions/github-script@v6
name: Setup the Artifact API environment
with:
script: |-
core.exportVariable("ACTIONS_RUNTIME_TOKEN", process.env["ACTIONS_RUNTIME_TOKEN"])
core.exportVariable("ACTIONS_RUNTIME_URL", process.env["ACTIONS_RUNTIME_URL"])
core.exportVariable("GITHUB_RETENTION_DAYS", process.env["GITHUB_RETENTION_DAYS"])
- run: ./run --help
shell: bash
if: runner.os != 'Windows'
- run: .\run.cmd --help
shell: cmd
if: runner.os == 'Windows'