From 7cb4b9356b56bb5d89b15751300b896dcebb39d0 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sun, 11 Aug 2024 09:02:53 +0000 Subject: [PATCH] CI: Bump ubuntu to 24.04 Ubuntu 20.04 fails to build with protoc 3.6.1.3. app_processes.proto:29:14: Explicit 'optional' labels are disallowed in the Proto3 syntax. To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default. Ubuntu 22.04 fails to build with protoc 3.12.4. app_processes.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set. clang-14 in Ubuntu fails to build. chrono:2360:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant expression chrono:2360:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef160c9..59dd970 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq \ ${{ matrix.pkgs }} cmake git golang libbrotli-dev \ libgtest-dev liblz4-dev libpcre2-dev libprotobuf-dev libunwind-dev \ - libzstd-dev make pandoc pkg-config + libzstd-dev make pandoc pkg-config xz-utils - name: checkout uses: actions/checkout@v4 with: @@ -68,12 +68,12 @@ jobs: - os: "archlinux:base" pkgs: clang env1: "CC=clang CXX=clang++" - - os: "ubuntu:20.04" + - os: "ubuntu:24.04" pkgs: "gcc-10 g++-10" env1: "CC=gcc-10 CXX=g++-10" - - os: "ubuntu:20.04" - pkgs: "clang-11 libstdc++-10-dev" - env1: "CC=clang-11 CXX=clang++-11" + - os: "ubuntu:24.04" + pkgs: "clang-15 libstdc++-10-dev" + env1: "CC=clang-15 CXX=clang++-15" - os: "alpine" pkgs: "gcc" env1: "CC=gcc CXX=g++" @@ -116,7 +116,7 @@ jobs: DEBIAN_FRONTEND=noninteractive apt-get install -yq \ ${{ matrix.pkgs }} cmake git golang libbrotli-dev \ libgtest-dev liblz4-dev libpcre2-dev libprotobuf-dev libunwind-dev \ - libzstd-dev pkg-config protobuf-compiler ninja-build + libzstd-dev pkg-config protobuf-compiler ninja-build xz-utils - name: prep alpine if: startsWith(matrix.os, 'alpine')