From cd2af04601b37fe186043949fd86b09723570290 Mon Sep 17 00:00:00 2001 From: Jonathan Cubides Date: Wed, 25 Jan 2023 14:45:04 +0100 Subject: [PATCH] Install wasmer binary from Github releases (#1765) The current Github action responsible for installing Wasmer fails from time to time, and it also is outdated, not following the new NodeJS 16 requirement by Github. We could use https://github.com/jaxxstorm/action-install-gh-release instead, but unfortunately, it does not have the proper support to expose the binaries contained in an inner folder, as in the case with the Wasmer release. In the meantime, let's use my [fork](https://github.com/jonaprieto/action-install-gh-release) while I open PR to the main repository. --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e205ca9d9..d5fc58934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -227,8 +227,13 @@ jobs: run: | echo "WASI_SYSROOT_PATH=$GITHUB_WORKSPACE/wasi-sysroot" >> $GITHUB_ENV - - name: Setup Wasmer - uses: wasmerio/setup-wasmer@v2 + - name: Install the latest Wasmer version + uses: jonaprieto/action-install-gh-release@1 + with: + repo: wasmerio/wasmer + tag: latest + binaries-location: bin + cache: true - name: Set homebrew LLVM CC and LIBTOOL vars (macOS) if: runner.os == 'macOS'