-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1630 from radixdlt/ci/use_common_actions
Use common GH action `setup-env`
- Loading branch information
Showing
3 changed files
with
216 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Setup environment' | ||
description: 'Common GH action to setup job environment' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
default: true | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Install nextest | ||
uses: taiki-e/install-action@nextest | ||
|
||
- name: Set LIBCLANG_PATH # See https://github.com/rust-lang/rust-bindgen/issues/1797 | ||
if: runner.os == 'Windows' | ||
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | ||
shell: bash | ||
- name: Install dependencies | ||
if: runner.os == 'Windows' | ||
run: choco install llvm -y | ||
shell: bash | ||
|
Oops, something went wrong.