mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
CI: Use clang for the test262 build
We currently have optimizations that apply only to clang, so we might as well make use of them.
This commit is contained in:
committed by
Andrew Kaster
parent
3d59efa7e1
commit
85ee56a702
Notes:
github-actions[bot]
2025-05-14 08:07:37 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/85ee56a7027 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4715 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/InvalidUsernameException
20
.github/workflows/libjs-test262.yml
vendored
20
.github/workflows/libjs-test262.yml
vendored
@@ -50,14 +50,19 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ninja-build unzip gcc-13 g++-13 jq wget curl zip tar autoconf autoconf-archive automake nasm pkg-config libgl1-mesa-dev rsync
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo add-apt-repository 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main'
|
||||
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y ninja-build unzip clang-19 clang++-19 jq wget curl zip tar autoconf autoconf-archive automake nasm pkg-config libgl1-mesa-dev rsync
|
||||
|
||||
test -e /opt/wabt-1.0.35 || (
|
||||
cd /tmp
|
||||
wget https://github.com/WebAssembly/wabt/releases/download/1.0.35/wabt-1.0.35-ubuntu-20.04.tar.gz
|
||||
sudo tar xf wabt-1.0.35-ubuntu-20.04.tar.gz -C /opt
|
||||
rm wabt-1.0.35-ubuntu-20.04.tar.gz
|
||||
)
|
||||
|
||||
# FIXME: Just use the setup action
|
||||
./Toolchain/BuildVcpkg.py --ci
|
||||
|
||||
@@ -72,9 +77,6 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r libjs-test262/requirements.txt
|
||||
|
||||
- name: Check versions
|
||||
run: set +e; g++ --version; g++-13 --version; python --version; python3 --version; ninja --version
|
||||
|
||||
- name: Restore Caches
|
||||
uses: ./.github/actions/cache-restore
|
||||
with:
|
||||
@@ -94,11 +96,11 @@ jobs:
|
||||
export HOME=${{ github.workspace }}/home
|
||||
mkdir -p $HOME
|
||||
env PATH="/opt/wabt-1.0.35/bin:$PATH" \
|
||||
CC=gcc-13 \
|
||||
CXX=g++-13 \
|
||||
CC=clang-19 \
|
||||
CXX=clang++-19 \
|
||||
cmake --preset CI -B libjs-test262/Build \
|
||||
-DCMAKE_C_COMPILER=gcc-13 \
|
||||
-DCMAKE_CXX_COMPILER=g++-13 \
|
||||
-DCMAKE_C_COMPILER=clang-19 \
|
||||
-DCMAKE_CXX_COMPILER=clang++-19 \
|
||||
-DWASM_SPEC_TEST_SKIP_FORMATTING=ON \
|
||||
-DINCLUDE_WASM_SPEC_TESTS=ON \
|
||||
-DENABLE_GUI_TARGETS=OFF
|
||||
|
||||
Reference in New Issue
Block a user