This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
42 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-worker | ||
description: | | ||
This action sets up a worker for use in other actions. It installs the | ||
necessary dependencies for building the project. | ||
inputs: | ||
rust-components: | ||
description: Comma-separated list of components to be additionally installed for a new rust toolchain | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Setup Ubuntu dependencies | ||
shell: bash | ||
run: sudo apt update && sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake protobuf-compiler | ||
|
||
- name: Install Rust nightly | ||
shell: bash | ||
run: | | ||
rustup toolchain install nightly-2023-01-01 | ||
rustup default nightly-2023-01-01 | ||
rustup target add wasm32-unknown-unknown | ||
rustup component add rustfmt |
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