Meta: Pull wasm-tools in CI instead of wabt

We'll be using wasm-tools for Wasm testsuite generation in the next few
commits.
This commit is contained in:
Ali Mohammad Pur 2025-12-04 02:04:37 +01:00 committed by Ali Mohammad Pur
parent 54e892b745
commit 0d097e1d6a
2 changed files with 10 additions and 7 deletions

View file

@ -112,19 +112,22 @@ runs:
brew update
brew install autoconf autoconf-archive automake bash ccache coreutils libtool llvm@20 nasm ninja pkg-config qt unzip
- name: 'Install wabt'
- name: 'Install wasm-tools'
shell: bash
run: |
VERSION=1.243.0
if ${{ inputs.os == 'Linux' }} ; then
curl -f -L -o wabt-1.0.35.tar.gz https://github.com/WebAssembly/wabt/releases/download/1.0.35/wabt-1.0.35-ubuntu-20.04.tar.gz
NAME="wasm-tools-$VERSION-x86_64-linux"
else
curl -f -L -o wabt-1.0.35.tar.gz https://github.com/WebAssembly/wabt/releases/download/1.0.35/wabt-1.0.35-macos-14.tar.gz
NAME="wasm-tools-$VERSION-aarch64-macos"
fi
tar -xzf ./wabt-1.0.35.tar.gz
rm ./wabt-1.0.35.tar.gz
curl -f -L -o "${NAME}.tar.gz" "https://github.com/bytecodealliance/wasm-tools/releases/download/v${VERSION}/${NAME}.tar.gz"
echo "${{ github.workspace }}/wabt-1.0.35/bin" >> $GITHUB_PATH
tar -xzf "./${NAME}.tar.gz"
rm "./${NAME}.tar.gz"
echo "${{ github.workspace }}/${NAME}" >> $GITHUB_PATH
- name: 'Set required environment variables'
if: ${{ inputs.os == 'Linux' && inputs.arch == 'arm64' }}

View file

@ -26,7 +26,7 @@ There are some optional features that can be enabled during compilation that are
- `ENABLE_ALL_THE_DEBUG_MACROS`: used for checking whether debug code compiles on CI. This should not be set normally, as it clutters the console output and makes the system run very slowly. Instead, enable only the needed debug macros, as described below.
- `ENABLE_COMPILETIME_FORMAT_CHECK`: checks for the validity of `std::format`-style format string during compilation. Enabled by default.
- `LAGOM_TOOLS_ONLY`: Skips building libraries, utiltis and tests for [Lagom](../Meta/Lagom/ReadMe.md). Mostly only useful for cross-compilation.
- `INCLUDE_WASM_SPEC_TESTS`: downloads and includes the WebAssembly spec testsuite tests. In order to use this option, you will need to install `prettier` and `wabt`. wabt version 1.0.35 or higher is required to pre-process the WebAssembly spec testsuite.
- `INCLUDE_WASM_SPEC_TESTS`: downloads and includes the WebAssembly spec testsuite tests. In order to use this option, you will need to install `prettier` and `wasm-tools`.
- `INCLUDE_FLAC_SPEC_TESTS`: downloads and includes the xiph.org FLAC test suite.
- `LADYBIRD_CACHE_DIR`: sets the location of a shared cache of downloaded files. Should not need to be set manually unless managing a distribution package.
- `ENABLE_NETWORK_DOWNLOADS`: allows downloading files from the internet during the build. Default on, turning off enables offline builds. For offline builds, the structure of the LADYBIRD_CACHE_DIR must be set up the way that the build expects.