Skip to content

Commit

Permalink
Automatically select Wizer version in build-assets (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcharles authored Nov 4, 2024
1 parent acd08d3 commit fd97ed9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Read wizer version
id: wizer_version
shell: bash
run: |
VERSION=$(cargo metadata --format-version=1 --locked | jq '.packages[] | select(.name == "wizer") | .version' -r)
echo "WIZER_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Install wizer
env:
WIZER_VERSION: 7.0.0
shell: bash
run: |
wget -nv https://github.com/bytecodealliance/wizer/releases/download/v${{ env.WIZER_VERSION }}/wizer-v${{ env.WIZER_VERSION }}-x86_64-macos.tar.xz -O /tmp/wizer.tar.xz
wget -nv https://github.com/bytecodealliance/wizer/releases/download/v${{ steps.wizer_version.outputs.WIZER_VERSION }}/wizer-v${{ steps.wizer_version.outputs.WIZER_VERSION }}-x86_64-macos.tar.xz -O /tmp/wizer.tar.xz
mkdir /tmp/wizer
tar xvf /tmp/wizer.tar.xz --strip-components=1 -C /tmp/wizer
echo "/tmp/wizer" >> $GITHUB_PATH
Expand Down

0 comments on commit fd97ed9

Please sign in to comment.