diff --git a/.github/docker_images/gcc-4.8/Dockerfile b/.github/docker_images/gcc-4.8/Dockerfile new file mode 100644 index 00000000000..e7791cf327f --- /dev/null +++ b/.github/docker_images/gcc-4.8/Dockerfile @@ -0,0 +1,19 @@ +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 OR ISC + +FROM gcc:4.8 + +VOLUME ["/awslc"] + +COPY awslc_build.sh / + +WORKDIR / + +RUN curl -LOk "https://github.com/Kitware/CMake/releases/download/v3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz" +RUN echo "9d915d505c07d84b610e1be6242c7cad68b4b7a4090ce85ecf9cec5effa47c43 cmake-3.6.3-Linux-x86_64.tar.gz" | sha256sum -c - +RUN tar -C /usr/local -xzf cmake-3.6.3-Linux-x86_64.tar.gz +RUN rm cmake-3.6.3-Linux-x86_64.tar.gz + +ENV PATH="${PATH}:/usr/local/cmake-3.6.3-Linux-x86_64/bin" + +ENTRYPOINT ["/awslc_build.sh"] diff --git a/.github/docker_images/gcc-4.8/awslc_build.sh b/.github/docker_images/gcc-4.8/awslc_build.sh new file mode 100755 index 00000000000..bc1d96c9741 --- /dev/null +++ b/.github/docker_images/gcc-4.8/awslc_build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 OR ISC + +set -ex -o pipefail + +echo "Building with GCC Version: $(gcc --version)" + +BUILD_DIR=$(mktemp -d) +SRC_DIR="${SRC_DIR:-/awslc}" +CMAKE_CONFIGURE_ARGS=("${argv[@]}") + +pushd "${BUILD_DIR}" + +cmake "${SRC_DIR}" "${CMAKE_CONFIGURE_ARGS[@]}" +make -j 4 ssl + +popd # ${BUILD_DIR} diff --git a/.github/workflows/actions-ci.yml b/.github/workflows/actions-ci.yml index e20c527cd9b..a06cd8cefa3 100644 --- a/.github/workflows/actions-ci.yml +++ b/.github/workflows/actions-ci.yml @@ -447,6 +447,18 @@ jobs: env tests/ci/run_openbsd_tests.sh ${{ matrix.args }} EOF + gcc-4_8: + # TODO: needs: [sanity-test-run] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build Docker Image + working-directory: .github/docker_images/gcc-4.8 + run: | + docker build -t "gcc-4.8" . + - name: Build using pre-generated assembly + run: | + docker run -v "${{ github.workspace }}:/awslc" "gcc-4.8" "-DDISABLE_GO=ON" "-DDISABLE_PERL=ON" "-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=1" # TODO: Investigate sudden hanging tests and failures in GHA runners (P114059413) # MSVC-SDE-32-bit: