Skip to content

Commit 6c8ea8e

Browse files
committed
Add GH CI build for gcc-4.8
1 parent ff6a901 commit 6c8ea8e

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0 OR ISC
3+
4+
FROM gcc:4.8
5+
6+
VOLUME ["/awslc"]
7+
8+
COPY awslc_build.sh /
9+
COPY entry.sh /
10+
11+
WORKDIR /
12+
13+
RUN curl -LOk "https://github.com/Kitware/CMake/releases/download/v3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz"
14+
RUN sha256sum cmake-3.6.3-Linux-x86_64.tar.gz | grep -q "9d915d505c07d84b610e1be6242c7cad68b4b7a4090ce85ecf9cec5effa47c43"
15+
RUN tar -C /usr/local -xzf cmake-3.6.3-Linux-x86_64.tar.gz
16+
RUN rm cmake-3.6.3-Linux-x86_64.tar.gz
17+
18+
ENV PATH="${PATH}:/usr/local/cmake-3.6.3-Linux-x86_64/bin"
19+
20+
ENTRYPOINT ["/entry.sh"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0 OR ISC
5+
6+
set -ex -o pipefail
7+
8+
echo "Building with GCC Version: $(gcc --version)"
9+
10+
BUILD_DIR=$(mktemp -d)
11+
SRC_DIR="${SRC_DIR:-/awslc}"
12+
13+
pushd "${BUILD_DIR}"
14+
15+
cmake "${SRC_DIR}" "-DDISABLE_GO=ON" "-DDISABLE_PERL=ON" "-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=1"
16+
make -j 4 ssl
17+
18+
popd # ${BUILD_DIR}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
# SPDX-License-Identifier: Apache-2.0 OR ISC
5+
6+
set -ex -o pipefail
7+
8+
/awslc_build.sh "${argv[@]}"

.github/workflows/actions-ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,20 @@ jobs:
447447
env
448448
tests/ci/run_openbsd_tests.sh ${{ matrix.args }}
449449
EOF
450+
gcc-4_8:
451+
needs: [sanity-test-run]
452+
runs-on: ubuntu-latest
453+
env:
454+
DOCKER_BUILDKIT: 1
455+
steps:
456+
- uses: actions/checkout@v4
457+
- name: Build Docker Image
458+
working-directory: .github/docker_images/gcc-4.8
459+
run: |
460+
docker build -t "gcc-4.8" .
461+
- name: Build using pre-generated assembly
462+
run: |
463+
docker run -v "${{ github.workspace }}:/awslc" "gcc-4.8"
450464
451465
# TODO: Investigate sudden hanging tests and failures in GHA runners (P114059413)
452466
# MSVC-SDE-32-bit:

0 commit comments

Comments
 (0)