mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 15:07:45 +00:00
CI: Add "set -e" to Azure DevOps scripts
Without setting this explicitly in every script, failing script lines in multiline scripts will not fail the job themselves.
This commit is contained in:
parent
958f9e960d
commit
5b5a76eadd
3 changed files with 14 additions and 0 deletions
|
@ -7,6 +7,7 @@ steps:
|
|||
|
||||
- ${{ if eq(parameters.os, 'Serenity') }}:
|
||||
- script: |
|
||||
set -e
|
||||
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
|
||||
|
@ -15,6 +16,7 @@ steps:
|
|||
|
||||
- ${{ if eq(parameters.os, 'Linux') }}:
|
||||
- script: |
|
||||
set -e
|
||||
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'
|
||||
|
@ -34,12 +36,14 @@ steps:
|
|||
- ${{ if eq(parameters.os, 'macOS') }}:
|
||||
# macOS ships an ancient Bash 3.x by default
|
||||
- script: |
|
||||
set -e
|
||||
brew update
|
||||
brew install bash ninja wabt ccache unzip qt llvm@15
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- ${{ if eq(parameters.os, 'Android') }}:
|
||||
- script: |
|
||||
set -e
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue