2022-05-23 05:16:04 +03:00
|
|
|
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/setup-conda@v1.0.5
|
|
|
|
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:
|
2022-12-14 20:45:39 +03:00
|
|
|
WASMPACKURL: https://github.com/rustwasm/wasm-pack/releases/download/v0.10.3
|
|
|
|
WASMPACKDIR: wasm-pack-v0.10.3-x86_64-apple-darwin
|
2022-05-23 05:16:04 +03:00
|
|
|
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"])
|
2022-06-01 14:44:40 +03:00
|
|
|
- run: ./run --help
|
2022-05-23 05:16:04 +03:00
|
|
|
shell: bash
|
|
|
|
if: runner.os != 'Windows'
|
|
|
|
- run: .\run.cmd --help
|
|
|
|
shell: cmd
|
|
|
|
if: runner.os == 'Windows'
|