Skip to content

Commit

Permalink
Testing ubuntu and debian builds on CI. all v1/v2 actions to v4 migra…
Browse files Browse the repository at this point in the history
…ted (#282)

* Smoke test distro build on ubuntu and debian builds

* Smoke test distro build on ubuntu and debian builds

* Using ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION in CI smoke build checks and in release due to ubuntu:bionic

* Using ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION in CI smoke build checks and in release due to ubuntu:bionic

* use checkout@v3 in case of ubuntu 18.04

* use checkout@v3 in case of ubuntu 18.04

* Continue on error on smoke test

* using same deps on docker build and build steps of ci smoke test

* noninteractive on smoke test build

* Using actions/download-artifact@v3 for release smoke test

* Avoid usage of ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION on publish-to-apt
  • Loading branch information
filipecosta90 authored Nov 25, 2024
1 parent 0fbf8b7 commit 771f34a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
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

0 comments on commit 771f34a

Please sign in to comment.