mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 08:08:34 +03:00
6fc4947764
* The bash entry point was renamed `run.sh` -> `run`. Thanks to that `./run` works both on Linux and Windows with PowerShell (sadly not on CMD). * Everyone's favorite checks for WASM size and program versions are back. These can be disabled through `--wasm-size-limit=0` and `--skip-version-check` respectively. WASM size limit is stored in `build-config.yaml`. * Improved diagnostics for case when downloaded CI run artifact archive cannot be extracted. * Added GH API authentication to the build script calls on CI. This should fix the macOS build failures that were occurring from time to time. (Actually they were due to runner being GitHub-hosted, not really an OS-specific issue by itself.) * If the GH API Personal Access Token is provided, it will be validated. Later on it is difficult to say, whether fail was caused by wrong PAT or other issue. * Renamed `clean` to `git-clean` as per suggestion to reduce risk of user accidently deleting unstaged work. * Whitelisting dependabot from changelog checks, so PRs created by it are mergeable. * Fixing issue where wasm-pack-action (third party) randomly failed to recognize the latest version of wasm-pack (macOS runners), leading to failed builds. * Build logs can be filtered using `ENSO_BUILD_LOG` environment variable. See https://docs.rs/tracing-subscriber/0.3.11/tracing_subscriber/struct.EnvFilter.html#directives for the supported syntax. * Improve help for ci-run source, to make clear that PAT token is required and what scope is expected there. Also, JS parts were updated with some cleanups and fixes following the changes made when introducing the build script.
52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
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:
|
|
WASMPACKURL: https://github.com/rustwasm/wasm-pack/releases/download/v0.10.2
|
|
WASMPACKDIR: wasm-pack-v0.10.2-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'
|