Skip to content

Commit

Permalink
Add composite actions dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Raunak Bhagat committed Nov 18, 2024
1 parent abf0d73 commit ad6a899
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Install uv, rust, and python
description: Install uv, rust, and python
runs:
using: composite
steps:
- name: Install rust
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
CARGO_BIN="$HOME/.cargo/bin"
echo 'export PATH="$CARGO_BIN:$PATH"' >> $HOME/.bashrc
echo "$CARGO_BIN" >> $GITHUB_PATH
- name: Install uv
shell: bash
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
UV_BIN="$HOME/.local/bin"
echo 'export PATH="$UV_BIN:$PATH"' >> $HOME/.bashrc
echo "$UV_BIN" >> $GITHUB_PATH
- name: Source .bashrc
shell: bash
run: |
source $HOME/.bashrc
- name: Install python (version 3.9)
shell: bash
run: |
uv python install 3.9
uv python pin 3.9

0 comments on commit ad6a899

Please sign in to comment.