2021-08-16 18:38:50 +03:00
|
|
|
parameters:
|
|
|
|
os: 'Linux'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
persistCredentials: true
|
|
|
|
|
2021-08-16 20:20:54 +03:00
|
|
|
- ${{ if eq(parameters.os, 'Serenity') }}:
|
|
|
|
- script: |
|
2023-03-19 22:17:36 +03:00
|
|
|
set -e
|
2022-02-06 22:05:35 +03:00
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
2023-07-08 03:21:41 +03:00
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main'
|
2021-08-16 20:20:54 +03:00
|
|
|
sudo apt-get update
|
2023-07-08 03:21:41 +03:00
|
|
|
sudo apt-get install clang-format-16 ccache e2fsprogs gcc-12 g++-12 libstdc++-12-dev libmpfr-dev libmpc-dev ninja-build qemu-utils qemu-system-i386 unzip lld
|
2021-08-16 20:20:54 +03:00
|
|
|
displayName: 'Install Dependencies'
|
|
|
|
|
2021-08-16 18:38:50 +03:00
|
|
|
- ${{ if eq(parameters.os, 'Linux') }}:
|
|
|
|
- script: |
|
2023-03-19 22:17:36 +03:00
|
|
|
set -e
|
2023-03-28 22:16:19 +03:00
|
|
|
sudo apt-get purge -y clang-12 clang-13 clang-14 gcc-10
|
2022-02-14 23:57:45 +03:00
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
2023-03-28 22:16:19 +03:00
|
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main'
|
2021-08-16 18:38:50 +03:00
|
|
|
sudo apt-get update
|
2023-10-27 18:03:17 +03:00
|
|
|
sudo apt-get install ccache gcc-12 g++-12 clang-15 libstdc++-12-dev ninja-build unzip qt6-base-dev qt6-tools-dev-tools libqt6svg6-dev qt6-multimedia-dev libgl1-mesa-dev libpulse-dev libssl-dev libegl1-mesa-dev
|
2021-08-16 18:38:50 +03:00
|
|
|
|
2023-03-28 22:16:19 +03:00
|
|
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 100
|
|
|
|
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 100
|
2022-10-25 22:28:09 +03:00
|
|
|
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
|
2021-08-16 18:38:50 +03:00
|
|
|
|
|
|
|
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'
|
|
|
|
|
2023-09-03 22:14:12 +03:00
|
|
|
- ${{ if or(eq(parameters.os, 'macOS'), eq(parameters.os, 'Android') ) }}:
|
2022-08-23 13:20:35 +03:00
|
|
|
# macOS ships an ancient Bash 3.x by default
|
2021-08-16 18:38:50 +03:00
|
|
|
- script: |
|
2023-03-19 22:17:36 +03:00
|
|
|
set -e
|
2023-04-21 09:32:28 +03:00
|
|
|
brew install coreutils bash ninja wabt ccache unzip qt llvm@15
|
2021-08-16 18:38:50 +03:00
|
|
|
displayName: 'Install Dependencies'
|