Skip to content

Commit

Permalink
Merge pull request #1630 from radixdlt/ci/use_common_actions
Browse files Browse the repository at this point in the history
Use common GH action `setup-env`
  • Loading branch information
lrubasze authored Oct 18, 2023
2 parents 1d776aa + 7ebc80c commit 28a47f0
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 303 deletions.
25 changes: 25 additions & 0 deletions .github/actions/setup-env/action.yml
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

Loading

0 comments on commit 28a47f0

Please sign in to comment.