From 781fe43a909557e2e13f00897f392028dd804a38 Mon Sep 17 00:00:00 2001 From: Dmytro Vyazelenko <696855+vyazelenko@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:42:00 +0200 Subject: [PATCH] [CI] Remove CentOS build. --- .github/workflows/ci.yml | 39 ------------------------------------ cppbuild/centos-docker-build | 22 -------------------- cppbuild/centos/Dockerfile | 34 ------------------------------- 3 files changed, 95 deletions(-) delete mode 100755 cppbuild/centos-docker-build delete mode 100755 cppbuild/centos/Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26cecf9646..9a1ef245d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -312,45 +312,6 @@ jobs: name: crash-logs-gcc-2204-${{ matrix.version }} path: ${{ steps.copy_test_logs.outputs.file }} - cpp-gcc-centos-build: - name: C++ CentOS 7 - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - version: [ '9' ] - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ github.sha }} - - name: Cache Gradle dependencies - uses: actions/cache@v4 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle') }} - restore-keys: | - ${{ runner.os }}-gradle-caches- - - name: Cache Gradle wrappers - uses: actions/cache@v4 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - - name: Build - run: GCC_VERSION=${{ matrix.version }} cppbuild/centos-docker-build - - name: Copy test logs - id: copy_test_logs - if: failure() - run: | - echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT - ./gradlew tarTestLogs - - name: Upload crash logs - if: always() && steps.copy_test_logs.outputs.file == 'build/distributions/test_logs.tbz2' - uses: actions/upload-artifact@v4 - with: - name: crash-logs-gcc-centos-${{ matrix.version }} - path: ${{ steps.copy_test_logs.outputs.file }} - cpp-gcc-rocky-build: name: C++ Rocky 8 runs-on: ubuntu-22.04 diff --git a/cppbuild/centos-docker-build b/cppbuild/centos-docker-build deleted file mode 100755 index 51f1c83e78..0000000000 --- a/cppbuild/centos-docker-build +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -if [ -z ${GCC_VERSION} ]; -then - echo "No GCC version provided!"; - exit 1; -else - echo "GCC_VERSION=${GCC_VERSION}" -fi - -SOURCE_DIR="$(pwd)" - -docker build --tag centos7-aeron \ - --build-arg USER_ID="$(id -u)" \ - --build-arg GROUP_ID="$(id -g)" \ - --build-arg GCC_VERSION="${GCC_VERSION}" \ - "${SOURCE_DIR}/cppbuild/centos" - -docker run --rm --shm-size=1G --network host \ - --volume="${SOURCE_DIR}":/opt/aeron \ - --volume="$(realpath ~/.gradle)":/home/athena/.gradle \ - centos7-aeron diff --git a/cppbuild/centos/Dockerfile b/cppbuild/centos/Dockerfile deleted file mode 100755 index 0a419fd345..0000000000 --- a/cppbuild/centos/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM centos:7 - -ARG USER_ID -ARG GROUP_ID -ARG CMAKE_VERSION=3.14.7 -ARG GCC_VERSION - -RUN groupadd --gid $GROUP_ID --non-unique --system athena -RUN adduser --uid $USER_ID --system --gid $GROUP_ID athena - -# Install dev tools -RUN yum install -y centos-release-scl && \ - yum install -y "devtoolset-${GCC_VERSION}-gcc" "devtoolset-${GCC_VERSION}-gcc-c++" make git - -# Install Java -RUN yum install -y https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm && \ - yum install --disableplugin=subscription-manager -y zulu-8 - -# Install CMake -WORKDIR /opt/tools -RUN curl -o cmake.tar.gz -L https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz && \ - tar xf cmake.tar.gz - -ENV PATH="$PATH:/opt/tools/cmake-${CMAKE_VERSION}-Linux-x86_64/bin" \ - JAVA_HOME=/usr/lib/jvm/zulu-8 \ - BUILD_JAVA_HOME=/usr/lib/jvm/zulu-8 \ - BUILD_JAVA_VERSION=8 \ - GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail" \ - GCC_VERSION=${GCC_VERSION} - -USER athena - -WORKDIR /opt/aeron -ENTRYPOINT scl enable "devtoolset-${GCC_VERSION}" -- cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors --package