Skip to content

Commit

Permalink
use different binary names
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Oct 12, 2023
1 parent f40b1e3 commit 57884c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ jobs:
if [ "${{ runner.os }}" = "Linux" ]; then
echo "ARCH=x86_64-linux-gnu-full" >> $GITHUB_ENV
echo "EXT=tar.gz" >> $GITHUB_ENV
echo "NU_BIN=nu" >> $GITHUB_ENV
elif [ "${{ runner.os }}" = "Windows" ]; then
echo "ARCH=x86_64-pc-windows-msvc" >> $GITHUB_ENV
echo "EXT=zip" >> $GITHUB_ENV
echo "NU_BIN=nu.exe" >> $GITHUB_ENV
elif [ "${{ runner.os }}" = "macOS" ]; then
echo "ARCH=x86_64-apple-darwin" >> $GITHUB_ENV
echo "EXT=tar.gz" >> $GITHUB_ENV
echo "NU_BIN=nu" >> $GITHUB_ENV
fi
shell: bash

Expand All @@ -54,10 +57,10 @@ jobs:
ls $name
unzip $name -d /tmp
fi
cp /tmp/$name/nu $HOME/nu
cp "/tmp/$name/${{ env.NU_BIN }}" "$HOME/${{ env.NU_BIN }}"
- name: Show Nushell Version
run: $HOME/nu --commands "version"
run: "$HOME/${{ env.NU_BIN }}" --commands "version"

- name: Run the tests
run: $HOME/nu --commands "use $PWD/nupm/; nupm test"
run: "$HOME/${{ env.NU_BIN }}" --commands "use $PWD/nupm/; nupm test"

0 comments on commit 57884c6

Please sign in to comment.