mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00: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:
parent
3d59efa7e1
commit
85ee56a702
Notes:
github-actions[bot]
2025-05-14 08:07:37 +00:00
Author: https://github.com/trflynn89
Commit: 85ee56a702
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
1 changed files with 11 additions and 9 deletions
20
.github/workflows/libjs-test262.yml
vendored
20
.github/workflows/libjs-test262.yml
vendored
|
@ -50,14 +50,19 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
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
|
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 || (
|
test -e /opt/wabt-1.0.35 || (
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://github.com/WebAssembly/wabt/releases/download/1.0.35/wabt-1.0.35-ubuntu-20.04.tar.gz
|
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
|
sudo tar xf wabt-1.0.35-ubuntu-20.04.tar.gz -C /opt
|
||||||
rm wabt-1.0.35-ubuntu-20.04.tar.gz
|
rm wabt-1.0.35-ubuntu-20.04.tar.gz
|
||||||
)
|
)
|
||||||
|
|
||||||
# FIXME: Just use the setup action
|
# FIXME: Just use the setup action
|
||||||
./Toolchain/BuildVcpkg.py --ci
|
./Toolchain/BuildVcpkg.py --ci
|
||||||
|
|
||||||
|
@ -72,9 +77,6 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r libjs-test262/requirements.txt
|
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
|
- name: Restore Caches
|
||||||
uses: ./.github/actions/cache-restore
|
uses: ./.github/actions/cache-restore
|
||||||
with:
|
with:
|
||||||
|
@ -94,11 +96,11 @@ jobs:
|
||||||
export HOME=${{ github.workspace }}/home
|
export HOME=${{ github.workspace }}/home
|
||||||
mkdir -p $HOME
|
mkdir -p $HOME
|
||||||
env PATH="/opt/wabt-1.0.35/bin:$PATH" \
|
env PATH="/opt/wabt-1.0.35/bin:$PATH" \
|
||||||
CC=gcc-13 \
|
CC=clang-19 \
|
||||||
CXX=g++-13 \
|
CXX=clang++-19 \
|
||||||
cmake --preset CI -B libjs-test262/Build \
|
cmake --preset CI -B libjs-test262/Build \
|
||||||
-DCMAKE_C_COMPILER=gcc-13 \
|
-DCMAKE_C_COMPILER=clang-19 \
|
||||||
-DCMAKE_CXX_COMPILER=g++-13 \
|
-DCMAKE_CXX_COMPILER=clang++-19 \
|
||||||
-DWASM_SPEC_TEST_SKIP_FORMATTING=ON \
|
-DWASM_SPEC_TEST_SKIP_FORMATTING=ON \
|
||||||
-DINCLUDE_WASM_SPEC_TESTS=ON \
|
-DINCLUDE_WASM_SPEC_TESTS=ON \
|
||||||
-DENABLE_GUI_TARGETS=OFF
|
-DENABLE_GUI_TARGETS=OFF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue