From ad6a8993341372f780ee59fcbab89c4cacbeb06a Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Mon, 18 Nov 2024 11:53:27 -0800 Subject: [PATCH] Add composite actions dir --- .github/actions/install/action.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/actions/install/action.yaml diff --git a/.github/actions/install/action.yaml b/.github/actions/install/action.yaml new file mode 100644 index 0000000000..a6cfef6a57 --- /dev/null +++ b/.github/actions/install/action.yaml @@ -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