From 39ab55dfcccc7e231b00f9b3528514238c44171a Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Fri, 10 Oct 2025 03:16:14 +0300 Subject: [PATCH 1/3] set ubuntu 22.04 --- .github/workflows/cmake.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index fce32ecf..394a5aed 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -31,17 +31,17 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-22.04, windows-latest, macOS-latest] build_type: ${{ fromJSON(format('[{0}]', inputs.build_type || '"Debug","Release"')) }} c_compiler: [gcc, clang, cl] include: - os: windows-latest c_compiler: cl cpp_compiler: cl - - os: ubuntu-latest + - os: ubuntu-22.04 c_compiler: gcc cpp_compiler: g++ - - os: ubuntu-latest + - os: ubuntu-22.04 c_compiler: clang cpp_compiler: clang++ - os: macOS-latest @@ -52,7 +52,7 @@ jobs: c_compiler: gcc - os: windows-latest c_compiler: clang - - os: ubuntu-latest + - os: ubuntu-22.04 c_compiler: cl - os: macOS-latest c_compiler: cl @@ -72,13 +72,13 @@ jobs: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - name: Install Clang and Libraries - if: matrix.os == 'ubuntu-latest' && matrix.c_compiler == 'clang' + if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' run: | sudo apt-get update sudo apt-get install -y clang libc++-dev libc++abi-dev - name: Set Clang 16 as Default - if: matrix.os == 'ubuntu-24.04' && matrix.c_compiler == 'clang' + if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' run: | sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100 sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100 @@ -86,7 +86,7 @@ jobs: sudo update-alternatives --set clang++ /usr/bin/clang++-16 - name: Check Clang Settings - if: matrix.os == 'ubuntu-latest' && matrix.c_compiler == 'clang' + if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' run: | clang --version clang++ --version From fe8635778dc2af4fe706ab2fd1c57238f06cf691 Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Fri, 10 Oct 2025 03:19:39 +0300 Subject: [PATCH 2/3] Update cmake.yml --- .github/workflows/cmake.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 394a5aed..f6ccb2a6 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -77,14 +77,6 @@ jobs: sudo apt-get update sudo apt-get install -y clang libc++-dev libc++abi-dev - - name: Set Clang 16 as Default - if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' - run: | - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100 - sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100 - sudo update-alternatives --set clang /usr/bin/clang-16 - sudo update-alternatives --set clang++ /usr/bin/clang++-16 - - name: Check Clang Settings if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' run: | From 057711e002de8c5622af496fb4139c321e7de4b4 Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Fri, 10 Oct 2025 03:21:17 +0300 Subject: [PATCH 3/3] Update cmake.yml --- .github/workflows/cmake.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f6ccb2a6..6a1fe0cb 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -71,12 +71,6 @@ jobs: run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - - name: Install Clang and Libraries - if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' - run: | - sudo apt-get update - sudo apt-get install -y clang libc++-dev libc++abi-dev - - name: Check Clang Settings if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang' run: |