-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: give up on reusable workflows
- Loading branch information
1 parent
3dd566f
commit cad2d2f
Showing
3 changed files
with
111 additions
and
72 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
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
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 |
---|---|---|
@@ -1,62 +1,57 @@ | ||
name: "Setup" | ||
description: "Setup environment for CI" | ||
inputs: | ||
runner: | ||
description: "The runner for the setup" | ||
required: true | ||
type: string | ||
target: | ||
description: "The target for Rust" | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# setup ubuntu dependencies | ||
- name: "Setup Ubuntu dependencies" | ||
if: inputs.runner == 'ubuntu-20.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential curl wget file libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev patchelf | ||
shell: bash | ||
|
||
# install llvm (for llvm-copy) on macos only. For cpp runtimes. | ||
# - name: "Setup MacOS dependencies" | ||
# if: inputs.runner == 'macos-latest' | ||
# run: | | ||
# brew update | ||
# brew install llvm@17 | ||
# echo "$$(brew --prefix llvm@17)/bin" >> $GITHUB_PATH | ||
# shell: bash | ||
|
||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "17.0" | ||
|
||
- name: "Install Node.js" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: "Install pnpm" | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: "Setup rust" | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt | ||
|
||
- name: "Add rust target (macOS)" | ||
if: inputs.runner == 'macos-latest' | ||
run: rustup target add aarch64-apple-darwin | ||
shell: bash | ||
|
||
- name: "Add rust target (Other)" | ||
if: inputs.runner != 'macos-latest' | ||
run: rustup target add ${{ inputs.target }} | ||
shell: bash | ||
# name: "Setup" | ||
# description: "Setup environment for CI" | ||
# inputs: | ||
# runner: | ||
# description: "The runner for the setup" | ||
# required: true | ||
# type: string | ||
# target: | ||
# description: "The target for Rust" | ||
# required: true | ||
# type: string | ||
|
||
# runs: | ||
# using: "composite" | ||
# steps: | ||
# # setup ubuntu dependencies | ||
# - name: "Setup Ubuntu dependencies" | ||
# if: inputs.runner == 'ubuntu-20.04' | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y build-essential curl wget file libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev patchelf | ||
# shell: bash | ||
|
||
# # install llvm (for llvm-copy) on macos only. For cpp runtimes. | ||
# - name: "Setup MacOS dependencies" | ||
# if: inputs.runner == 'macos-latest' | ||
# run: | | ||
# brew update | ||
# brew install llvm@17 | ||
# echo "$$(brew --prefix llvm@17)/bin" >> $GITHUB_PATH | ||
# shell: bash | ||
|
||
# - name: "Install Node.js" | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: "Install pnpm" | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# run_install: false | ||
|
||
# - name: "Setup rust" | ||
# uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
# with: | ||
# components: rustfmt | ||
|
||
# - name: "Add rust target (macOS)" | ||
# if: inputs.runner == 'macos-latest' | ||
# run: rustup target add aarch64-apple-darwin | ||
# shell: bash | ||
|
||
# - name: "Add rust target (Other)" | ||
# if: inputs.runner != 'macos-latest' | ||
# run: rustup target add ${{ inputs.target }} | ||
# shell: bash |