From 4c2a2d568fc23e52e2c919e161023116507cdc47 Mon Sep 17 00:00:00 2001 From: Pavel Punsky Date: Thu, 14 Nov 2024 16:59:31 -0800 Subject: [PATCH] Install openssl-1.1.1 on amazonlinux:2 instead of openssl-1.0.1 (#1595) In preparation to deprecation of openssl below version 1.1.1 switch to using openssl-1.1.1 on amazonlinux:2 (where 1.0.2 is the default) Fixes build issue for #1397 --- ...x_tests.yml => amazon_linux2023_tests.yml} | 5 +- .github/workflows/amazon_linux2_tests.yml | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+), 3 deletions(-) rename .github/workflows/{amazon_linux_tests.yml => amazon_linux2023_tests.yml} (90%) create mode 100644 .github/workflows/amazon_linux2_tests.yml diff --git a/.github/workflows/amazon_linux_tests.yml b/.github/workflows/amazon_linux2023_tests.yml similarity index 90% rename from .github/workflows/amazon_linux_tests.yml rename to .github/workflows/amazon_linux2023_tests.yml index d143383..0458101 100644 --- a/.github/workflows/amazon_linux_tests.yml +++ b/.github/workflows/amazon_linux2023_tests.yml @@ -1,4 +1,4 @@ -name: AmazonLinux +name: AmazonLinux2023 on: push: @@ -16,8 +16,7 @@ jobs: strategy: fail-fast: false matrix: - # amazonlinux 2 is end-of-life 2025-06 - os: [ 'amazonlinux:2', 'amazonlinux:2023' ] + os: [ 'amazonlinux:2023' ] runs-on: ubuntu-latest container: ${{ matrix.os }} diff --git a/.github/workflows/amazon_linux2_tests.yml b/.github/workflows/amazon_linux2_tests.yml new file mode 100644 index 0000000..4d94db2 --- /dev/null +++ b/.github/workflows/amazon_linux2_tests.yml @@ -0,0 +1,46 @@ +name: AmazonLinux2 + +on: + push: + pull_request: + types: [ opened, reopened, synchronize ] + +# make GHA actions use node16 to use ancient container images +# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ +# Unclear how long this will work though +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + +jobs: + builds: + strategy: + fail-fast: false + matrix: + # amazonlinux 2 is end-of-life 2025-06 + os: [ 'amazonlinux:2' ] + + runs-on: ubuntu-latest + container: ${{ matrix.os }} + + steps: + - name: Install Dependencies + run: | + yum install -y gcc make gzip tar openssl11-devel libevent-devel + # Delay checkout until after dependencies have been installed. Amazon linux is very minimal and lacks basic stuff by default. + # use v3 of checkout until the weird container, nodejs, glibc issue is fixed + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Configure + run: ./configure + + - name: Compile + run: make + + - name: Unit Test + run: make check + + - name: Integration Test + working-directory: examples + run: ./run_tests.sh && ./run_tests_conf.sh