Skip to content

Commit

Permalink
Update wasmtime version in CI
Browse files Browse the repository at this point in the history
This commit updates the wasmtime version used in CI, which is currently
a very outdated version. The new version matches the version used in the
CLI.

Additionally, this commit introduces a mechanism to retrieve the CLI
from a `wasmtime-version` file located at the root of the repository, in
order to make it a bit easier to update the version in the future.
  • Loading branch information
saulecabrera committed Jul 1, 2024
1 parent 93df556 commit 229666c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/ci-shared-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ runs:
${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.toml') }}
${{ runner.os }}-cargo-target
- name: Read wasmtime version
id: wasmtime_version
run: |
VERSION=$(cat wasmtime-version)
echo "::set-output name=wasmtime_version::$VERSION"
- name: Install wasmtime-cli
env:
WASMTIME_VERSION: 8.0.0
shell: bash
run: |
wget -nv 'https://github.com/bytecodealliance/wasmtime/releases/download/v${{ env.WASMTIME_VERSION }}/wasmtime-v${{ env.WASMTIME_VERSION }}-x86_64-${{ inputs.os }}.tar.xz' -O /tmp/wasmtime.tar.xz
wget -nv 'https://github.com/bytecodealliance/wasmtime/releases/download/v${{ steps.wasmtime_version.outputs.wasmtime_version }}/wasmtime-v${{ steps.wasmtime_version.outputs.wasmtime_version }}-x86_64-${{ inputs.os }}.tar.xz' -O /tmp/wasmtime.tar.xz
mkdir /tmp/wasmtime
tar xvf /tmp/wasmtime.tar.xz --strip-components=1 -C /tmp/wasmtime
echo "/tmp/wasmtime" >> $GITHUB_PATH
1 change: 1 addition & 0 deletions wasmtime-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19.0.0

0 comments on commit 229666c

Please sign in to comment.