Skip to content

Commit

Permalink
👷 fix bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
juvenn committed May 19, 2024
1 parent caa006e commit 5e02ca5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
name: release
on:
push:
branches:
- "build"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

Expand Down Expand Up @@ -39,6 +41,7 @@ jobs:
shell: bash
if: env.ARROW_VERSION == ''
run: |
version=${GITHUB_REF_NAME:-"0.0.0"}
echo "ARROW_VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV
echo "version is: ${{ env.ARROW_VERSION }}"
Expand All @@ -57,12 +60,16 @@ jobs:
if: ${{ matrix.use-cross == true }}
shell: bash
run: |
echo $(pwd)
bin="$HOME/.local/bin"
dir="$RUNNER_TEMP/cross-download"
mkdir "$dir"
cd "$dir"
curl -LO "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz"
tar xf cross-x86_64-unknown-linux-musl.tar.gz
cp ./cross /usr/bin/cross
mkdir -p $bin
cp ./cross $bin
echo "$bin" >> $GITHUB_PATH
echo "CARGO=cross" >> $GITHUB_ENV
echo "RUSTFLAGS=" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 5e02ca5

Please sign in to comment.