summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-01-06 23:27:53 -0700
committerLinus Groh <mail@linusgroh.de>2022-01-07 11:02:30 +0100
commitc62c10caf03a90d665bf934b376c3a68bb69341e (patch)
tree936a4798086babacc25df5192b426608930b6c93 /.github/workflows
parentd70aba6a11df6815510c4246a5fb58582634cbb4 (diff)
downloadserenity-c62c10caf03a90d665bf934b376c3a68bb69341e.zip
Meta+CI+Documentation: Bump host gcc requirement up to gcc 11
Bump macOS CI version to macOS 11 while we're here.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cmake.yml16
-rw-r--r--.github/workflows/libjs-test262.yml5
-rw-r--r--.github/workflows/pvs-studio-static-analysis.yml11
-rw-r--r--.github/workflows/sonar-cloud-static-analysis.yml15
4 files changed, 24 insertions, 23 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index ac2a36149d..90c9039742 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -39,15 +39,17 @@ jobs:
# sudo apt-get update -qq
- name: "Install Ubuntu dependencies"
# These packages are already part of the ubuntu-20.04 image:
- # cmake clang-format-11 gcc-10 g++-10 libstdc++-10-dev libgmp-dev npm shellcheck
+ # cmake clang-format-11 libgmp-dev npm shellcheck
# Packages below aren't.
#
# We add the canonical-server/server-backports PPA to get updated QEMU releases without having to manage
# yet another cache in github actions
+ # We add the ubuntu-toolchain-r/test PPA to get gcc-11 on 20.04
run: |
sudo add-apt-repository ppa:canonical-server/server-backports
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
- sudo apt-get install libmpfr-dev libmpc-dev ninja-build e2fsprogs qemu-utils qemu-system-i386 ccache unzip
+ sudo apt-get install ccache e2fsprogs gcc-11 g++-11 libstdc++-11-dev libmpfr-dev libmpc-dev ninja-build qemu-utils qemu-system-i386 unzip
- name: Install JS dependencies
run: sudo npm install -g prettier@2.4.1
- name: Install Python dependencies
@@ -56,7 +58,7 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 requests
- name: Check versions
- run: set +e; g++ --version; g++-10 --version; clang-format --version; clang-format-11 --version; prettier --version; python --version; python3 --version; ninja --version; flake8 --version; ccache --version; qemu-system-i386 --version
+ run: set +e; g++ --version; g++-11 --version; clang-format --version; clang-format-11 --version; prettier --version; python --version; python3 --version; ninja --version; flake8 --version; ccache --version; qemu-system-i386 --version
# === PREPARE FOR BUILDING ===
@@ -140,8 +142,8 @@ jobs:
-DSERENITY_ARCH=${{ matrix.arch }} \
-DSERENITY_TOOLCHAIN=GNU \
-DBUILD_LAGOM=ON \
- -DCMAKE_C_COMPILER=gcc-10 \
- -DCMAKE_CXX_COMPILER=g++-10 \
+ -DCMAKE_C_COMPILER=gcc-11 \
+ -DCMAKE_CXX_COMPILER=g++-11 \
-DENABLE_ALL_DEBUG_FACILITIES=ON \
-DENABLE_PCI_IDS_DOWNLOAD=OFF \
-DENABLE_USB_IDS_DOWNLOAD=OFF
@@ -155,8 +157,8 @@ jobs:
-DENABLE_COMPILETIME_HEADER_CHECK=ON \
-DSERENITY_ARCH=${{ matrix.arch }} \
-DSERENITY_TOOLCHAIN=GNU \
- -DCMAKE_C_COMPILER=gcc-10 \
- -DCMAKE_CXX_COMPILER=g++-10 \
+ -DCMAKE_C_COMPILER=gcc-11 \
+ -DCMAKE_CXX_COMPILER=g++-11 \
-DENABLE_UNDEFINED_SANITIZER=ON \
-DENABLE_PCI_IDS_DOWNLOAD=OFF \
-DENABLE_USB_IDS_DOWNLOAD=OFF
diff --git a/.github/workflows/libjs-test262.yml b/.github/workflows/libjs-test262.yml
index 60e3fee199..4da23789de 100644
--- a/.github/workflows/libjs-test262.yml
+++ b/.github/workflows/libjs-test262.yml
@@ -47,8 +47,9 @@ jobs:
- name: Install dependencies
run: |
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
- sudo apt-get install ninja-build unzip
+ sudo apt-get install ninja-build unzip gcc-11 g++-11
- name: Setup Python
uses: actions/setup-python@v2
@@ -85,7 +86,7 @@ jobs:
working-directory: libjs-test262
run: |
cd Build
- cmake -GNinja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DSERENITY_SOURCE_DIR=${{ env.SERENITY_SOURCE_DIR }} ..
+ cmake -GNinja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DSERENITY_SOURCE_DIR=${{ env.SERENITY_SOURCE_DIR }} ..
ninja libjs-test262-runner test-js
- name: Run test262 and test262-parser-tests
diff --git a/.github/workflows/pvs-studio-static-analysis.yml b/.github/workflows/pvs-studio-static-analysis.yml
index 1eca15daab..b95a09b958 100644
--- a/.github/workflows/pvs-studio-static-analysis.yml
+++ b/.github/workflows/pvs-studio-static-analysis.yml
@@ -21,15 +21,16 @@ jobs:
- name: "Install Ubuntu dependencies"
# These packages are already part of the ubuntu-20.04 image:
- # cmake clang-format-11 gcc-10 g++-10 libstdc++-10-dev libgmp-dev npm shellcheck
+ # cmake clang-format-11 libgmp-dev npm shellcheck
# Packages below aren't.
#
run: |
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
- sudo apt-get install libmpfr-dev libmpc-dev ninja-build unzip pvs-studio
+ sudo apt-get install gcc-11 g++-11 libstdc++-11-dev libmpfr-dev libmpc-dev ninja-build unzip pvs-studio
- name: Check versions
- run: set +e; g++ --version; g++-10 --version; ninja --version;
+ run: set +e; g++ --version; g++-11 --version; ninja --version;
- name: Prepare useful stamps
id: stamps
@@ -71,8 +72,8 @@ jobs:
cmake -S Meta/CMake/Superbuild -B Build/superbuild -GNinja \
-DSERENITY_ARCH=${{ env.PVS_STUDIO_ANALYSIS_ARCH }} \
-DSERENITY_TOOLCHAIN=GNU \
- -DCMAKE_C_COMPILER=gcc-10 \
- -DCMAKE_CXX_COMPILER=g++-10 \
+ -DCMAKE_C_COMPILER=gcc-11 \
+ -DCMAKE_CXX_COMPILER=g++-11 \
-DENABLE_PCI_IDS_DOWNLOAD=OFF \
-DENABLE_USB_IDS_DOWNLOAD=OFF
diff --git a/.github/workflows/sonar-cloud-static-analysis.yml b/.github/workflows/sonar-cloud-static-analysis.yml
index fa7825f043..4715a48c20 100644
--- a/.github/workflows/sonar-cloud-static-analysis.yml
+++ b/.github/workflows/sonar-cloud-static-analysis.yml
@@ -55,18 +55,15 @@ jobs:
- name: "Install Ubuntu dependencies"
# These packages are already part of the ubuntu-20.04 image:
- # cmake clang-format-11 gcc-10 g++-10 libstdc++-10-dev libgmp-dev npm shellcheck
+ # cmake clang-format-11 libgmp-dev npm shellcheck
# Packages below aren't.
- #
- # We add the canonical-server/server-backports PPA to get updated QEMU releases without having to manage
- # yet another cache in github actions
run: |
- sudo add-apt-repository ppa:canonical-server/server-backports
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
- sudo apt-get install libmpfr-dev libmpc-dev ninja-build unzip
+ sudo apt-get install gcc-11 g++-11 libstdc++-11-dev libmpfr-dev libmpc-dev ninja-build unzip
- name: Check versions
- run: set +e; g++ --version; g++-10 --version; ninja --version;
+ run: set +e; g++ --version; g++-11 --version; ninja --version;
- name: Prepare useful stamps
id: stamps
@@ -108,8 +105,8 @@ jobs:
cmake -S Meta/CMake/Superbuild -B Build/superbuild -GNinja \
-DSERENITY_ARCH=${{ env.SONAR_ANALYSIS_ARCH }} \
-DSERENITY_TOOLCHAIN=GNU \
- -DCMAKE_C_COMPILER=gcc-10 \
- -DCMAKE_CXX_COMPILER=g++-10 \
+ -DCMAKE_C_COMPILER=gcc-11 \
+ -DCMAKE_CXX_COMPILER=g++-11 \
-DENABLE_PCI_IDS_DOWNLOAD=OFF \
-DENABLE_USB_IDS_DOWNLOAD=OFF