Skip to content

Commit

Permalink
Testing build on 20.04, 22.04, and 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 committed Nov 24, 2024
1 parent 0fbf8b7 commit eca4a71
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
48 changes: 42 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push, pull_request]

jobs:
build-notls:
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,27 +21,48 @@ jobs:
build-ubuntu:
strategy:
matrix:
platform: [ubuntu-latest, ubuntu-20.04]
platform: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-latest]
name: Build ${{ matrix.platform }}
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get install lcov autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
sudo apt-get install autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
# Install lcov only on ubuntu-latest
- name: Install lcov
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get install -y lcov
lcov --version # Confirm version
- name: Build
run: autoreconf -ivf && ./configure --enable-code-coverage && make -j
if: matrix.platform != 'ubuntu-latest'
run: autoreconf -ivf && ./configure && make -j

- name: Build with coverage
if: matrix.platform == 'ubuntu-latest'
run: |
autoreconf -ivf && ./configure --enable-code-coverage && make -j
- name: Setup Python
if: matrix.platform == 'ubuntu-latest'
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: x64

- name: Install Python dependencies
if: matrix.platform == 'ubuntu-latest'
run: pip install -r ./tests/test_requirements.txt

- name: Install Redis
if: matrix.platform == 'ubuntu-latest'
run: |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
Expand All @@ -47,6 +71,7 @@ jobs:
sudo service redis-server stop
- name: Increase connection limit
if: matrix.platform == 'ubuntu-latest'
run: |
sudo sysctl -w net.ipv4.tcp_fin_timeout=10
sudo sysctl -w net.ipv4.tcp_tw_reuse=1
Expand All @@ -58,6 +83,7 @@ jobs:
./tests/gen-test-certs.sh
- name: Test OSS TCP
if: matrix.platform == 'ubuntu-latest'
timeout-minutes: 10
run: |
./tests/run_tests.sh
Expand All @@ -81,6 +107,7 @@ jobs:
TLS_PROTOCOLS='TLSv1.3' VERBOSE=1 TLS=1 ./tests/run_tests.sh
- name: Test OSS-CLUSTER TCP
if: matrix.platform == 'ubuntu-latest'
timeout-minutes: 10
run: |
OSS_STANDALONE=0 OSS_CLUSTER=1 VERBOSE=1 \
Expand All @@ -106,8 +133,11 @@ jobs:
openssl: ["3.0"]
runs-on: macos-latest
continue-on-error: true
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install autoconf automake libtool libevent openssl@${{ matrix.openssl }}
- name: Build
Expand All @@ -121,8 +151,11 @@ jobs:
matrix:
platform: [macos-12]
runs-on: ${{ matrix.platform }}
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install autoconf automake libtool libevent [email protected]
- name: Build
Expand All @@ -134,8 +167,11 @@ jobs:
matrix:
platform: [macos-12]
runs-on: ${{ matrix.platform }}
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install autoconf automake libtool libevent pkg-config
- name: Install openssl v1.0.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ jobs:
needs: build-binary-package
env:
ARCH: amd64
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
strategy:
matrix:
image: ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }}
Expand Down

0 comments on commit eca4a71

Please sign in to comment.