Skip to content

Commit

Permalink
SQUASH: export variables per OS
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Oct 12, 2023
1 parent 008459a commit 98a72f0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,23 @@ jobs:
- uses: actions/checkout@v3

- name: Set platform-specific variables
run: echo "${{ runner.os }}"
run: |
if [ "${{ runner.os }}" = "Linux" ]; then
export ARCH=x86_64-linux-gnu-full
export EXT=tar.gz
elif [ "${{ runner.os }}" = "Windows" ]; then
export ARCH=windows-arch
export EXT=windows-ext
elif [ "${{ runner.os }}" = "macOS" ]; then
export ARCH=macos-arch
export EXT=macos-ext
fi
shell: bash

- name: Install Nushell from Nightly
run: |
echo "ARCH: $ARCH"
echo "EXT: $EXT"
tarball=$(\
curl -L https://api.github.com/repos/nushell/nightly/releases \
| jq 'sort_by(.published_at) | reverse | .[0].assets'\
Expand Down

0 comments on commit 98a72f0

Please sign in to comment.