Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing ubuntu and debian builds on CI. all v1/v2 actions to v4 migrated #282

Merged
merged 11 commits into from
Nov 25, 2024
Merged
39 changes: 36 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,39 @@ name: CI
on: [push, pull_request]

jobs:
smoketest-build-distros:
runs-on: ubuntu-latest
continue-on-error: true
env:
ARCH: amd64
# required by ubuntu:bionic
# 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
DEBIAN_FRONTEND: noninteractive
strategy:
matrix:
image: ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }}
container: ${{ matrix.image }}
name: Build ${{ matrix.image }}
steps:
- name: Checkout Code for ubuntu:bionic
if: matrix.image == 'ubuntu:bionic'
uses: actions/checkout@v3

- name: Checkout Code for other versions
if: matrix.image != 'ubuntu:bionic'
uses: actions/checkout@v4

- name: Install dependencies
run: |
apt-get -qq update -y
apt-get install -y \
build-essential autoconf automake libpcre3-dev libevent-dev \
pkg-config zlib1g-dev libssl-dev libboost-all-dev cmake flex

- name: Build
run: autoreconf -ivf && ./configure && make -j

build-notls:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -107,7 +140,7 @@ jobs:
runs-on: macos-latest
continue-on-error: 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 @@ -122,7 +155,7 @@ jobs:
platform: [macos-12]
runs-on: ${{ matrix.platform }}
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 @@ -135,7 +168,7 @@ jobs:
platform: [macos-12]
runs-on: ${{ matrix.platform }}
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
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ jobs:
needs: build-binary-package
env:
ARCH: amd64
# required by ubuntu:bionic
# 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 All @@ -136,7 +139,15 @@ jobs:
exit 1
fi
echo "BUILD_ARCH=$BUILD_ARCH" >> $GITHUB_ENV
- name: Get binary packages
- name: Get binary packages for ubuntu:bionic
if: matrix.image == 'ubuntu:bionic'
uses: actions/download-artifact@v3
with:
name: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
path: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}

- name: Get binary packages for other versions
if: matrix.image != 'ubuntu:bionic'
uses: actions/download-artifact@v4
with:
name: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
Expand Down
Loading