mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
8639d8bc21
The two major changes noticeable on the SerenityOS codebase are: - Much improved support for const placement, clang-format-14 ignored our east-const configuration in various places - Different formatting for requires clauses, now breaking them onto their own line, which helps with readability a bit Current versions of CLion also ship LLVM 15, so the built-in formatting now matches CI formatting again :^)
45 lines
2 KiB
YAML
45 lines
2 KiB
YAML
parameters:
|
|
os: 'Linux'
|
|
|
|
steps:
|
|
- checkout: self
|
|
persistCredentials: true
|
|
|
|
- ${{ if eq(parameters.os, 'Serenity') }}:
|
|
- script: |
|
|
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-15 main'
|
|
sudo apt-get update
|
|
sudo apt-get install clang-format-15 ccache e2fsprogs gcc-12 g++-12 libstdc++-12-dev libmpfr-dev libmpc-dev ninja-build qemu-utils qemu-system-i386 unzip lld
|
|
displayName: 'Install Dependencies'
|
|
|
|
- ${{ if eq(parameters.os, 'Linux') }}:
|
|
- script: |
|
|
sudo apt-get purge -y clang-12 gcc-10
|
|
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 apt-get update
|
|
sudo apt-get install ccache gcc-12 g++-12 clang-13 libstdc++-12-dev ninja-build unzip
|
|
|
|
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/gcc gcc /usr/bin/gcc-12 100
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
|
|
|
|
wget https://github.com/WebAssembly/wabt/releases/download/1.0.23/wabt-1.0.23-ubuntu.tar.gz
|
|
tar -xzf ./wabt-1.0.23-ubuntu.tar.gz
|
|
rm ./wabt-1.0.23-ubuntu.tar.gz
|
|
displayName: 'Install Dependencies'
|
|
|
|
- ${{ if eq(parameters.os, 'macOS') }}:
|
|
# macOS ships an ancient Bash 3.x by default
|
|
- script: |
|
|
brew install bash ninja wabt ccache unzip
|
|
displayName: 'Install Dependencies'
|
|
|
|
- ${{ if eq(parameters.os, 'Android') }}:
|
|
- script: |
|
|
sudo apt-get install ccache gcc-12 g++-12 libstdc++-12-dev ninja-build unzip
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
|
|
displayName: 'Install Dependencies'
|