mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
CI: Enable ladybird builds in Lagom CI
This commit is contained in:
parent
0384513779
commit
03edff1f39
2 changed files with 21 additions and 6 deletions
|
@ -23,6 +23,18 @@ jobs:
|
||||||
${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
|
${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
|
||||||
value: gcc
|
value: gcc
|
||||||
|
|
||||||
|
- name: host-cc
|
||||||
|
${{ if eq(parameters.os, 'macOS') }}:
|
||||||
|
value: $(brew --prefix llvm@15)/bin/clang
|
||||||
|
${{ if not(eq(parameters.os, 'macOS')) }}:
|
||||||
|
value: gcc-12
|
||||||
|
|
||||||
|
- name: host-cxx
|
||||||
|
${{ if eq(parameters.os, 'macOS') }}:
|
||||||
|
value: $(brew --prefix llvm@15)/bin/clang++
|
||||||
|
${{ if not(eq(parameters.os, 'macOS')) }}:
|
||||||
|
value: g++-12
|
||||||
|
|
||||||
- name: ndk_version # only relevant for Android
|
- name: ndk_version # only relevant for Android
|
||||||
value: '24.0.8215888'
|
value: '24.0.8215888'
|
||||||
|
|
||||||
|
@ -55,13 +67,14 @@ jobs:
|
||||||
cmake -GNinja -B tools-build \
|
cmake -GNinja -B tools-build \
|
||||||
-DBUILD_LAGOM=OFF \
|
-DBUILD_LAGOM=OFF \
|
||||||
-DENABLE_LAGOM_CCACHE=ON \
|
-DENABLE_LAGOM_CCACHE=ON \
|
||||||
-DCMAKE_C_COMPILER=gcc-12 \
|
-DCMAKE_C_COMPILER=$(host-cc) \
|
||||||
-DCMAKE_CXX_COMPILER=g++-12 \
|
-DCMAKE_CXX_COMPILER=$(host-cxx) \
|
||||||
-DCMAKE_INSTALL_PREFIX=tool-install \
|
-DCMAKE_INSTALL_PREFIX=tool-install \
|
||||||
-Dpackage=LagomTools
|
-Dpackage=LagomTools
|
||||||
ninja -C tools-build install
|
ninja -C tools-build install
|
||||||
cmake -GNinja -B Build \
|
cmake -GNinja -B Build \
|
||||||
-DBUILD_LAGOM=ON \
|
-DBUILD_LAGOM=ON \
|
||||||
|
-DENABLE_LAGOM_LADYBIRD=ON \
|
||||||
-DENABLE_LAGOM_CCACHE=ON \
|
-DENABLE_LAGOM_CCACHE=ON \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DANDROID_ABI=arm64-v8a \
|
-DANDROID_ABI=arm64-v8a \
|
||||||
|
@ -100,12 +113,13 @@ jobs:
|
||||||
cmake -GNinja -B Build \
|
cmake -GNinja -B Build \
|
||||||
-DBUILD_LAGOM=ON \
|
-DBUILD_LAGOM=ON \
|
||||||
-DENABLE_LAGOM_CCACHE=ON \
|
-DENABLE_LAGOM_CCACHE=ON \
|
||||||
|
-DENABLE_LAGOM_LADYBIRD=ON \
|
||||||
-DINCLUDE_WASM_SPEC_TESTS=ON \
|
-DINCLUDE_WASM_SPEC_TESTS=ON \
|
||||||
-DWASM_SPEC_TEST_SKIP_FORMATTING=ON \
|
-DWASM_SPEC_TEST_SKIP_FORMATTING=ON \
|
||||||
-DENABLE_UNDEFINED_SANITIZER=ON \
|
-DENABLE_UNDEFINED_SANITIZER=ON \
|
||||||
-DENABLE_ADDRESS_SANITIZER=ON \
|
-DENABLE_ADDRESS_SANITIZER=ON \
|
||||||
-DCMAKE_C_COMPILER=gcc-12 \
|
-DCMAKE_C_COMPILER=$(host-cc) \
|
||||||
-DCMAKE_CXX_COMPILER=g++-12
|
-DCMAKE_CXX_COMPILER=$(host-cxx)
|
||||||
displayName: 'Create Build Environment'
|
displayName: 'Create Build Environment'
|
||||||
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom
|
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom
|
||||||
env:
|
env:
|
||||||
|
@ -114,6 +128,7 @@ jobs:
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
cmake --install . --prefix $(Build.SourcesDirectory)/Meta/Lagom/Install
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build
|
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -19,7 +19,7 @@ steps:
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-13 main'
|
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-13 main'
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ccache gcc-12 g++-12 clang-13 libstdc++-12-dev ninja-build unzip
|
sudo apt-get install ccache gcc-12 g++-12 clang-13 libstdc++-12-dev ninja-build unzip qt6-base-dev qt6-tools-dev-tools libgl1-mesa-dev
|
||||||
|
|
||||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
|
||||||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 100
|
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 100
|
||||||
|
@ -34,7 +34,7 @@ steps:
|
||||||
- ${{ if eq(parameters.os, 'macOS') }}:
|
- ${{ if eq(parameters.os, 'macOS') }}:
|
||||||
# macOS ships an ancient Bash 3.x by default
|
# macOS ships an ancient Bash 3.x by default
|
||||||
- script: |
|
- script: |
|
||||||
brew install bash ninja wabt ccache unzip
|
brew install bash ninja wabt ccache unzip qt llvm@15
|
||||||
displayName: 'Install Dependencies'
|
displayName: 'Install Dependencies'
|
||||||
|
|
||||||
- ${{ if eq(parameters.os, 'Android') }}:
|
- ${{ if eq(parameters.os, 'Android') }}:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue