Skip to content

Commit 771f34a

Browse files
Testing ubuntu and debian builds on CI. all v1/v2 actions to v4 migrated (#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
1 parent 0fbf8b7 commit 771f34a

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6+
smoketest-build-distros:
7+
runs-on: ubuntu-latest
8+
continue-on-error: true
9+
env:
10+
ARCH: amd64
11+
# required by ubuntu:bionic
12+
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
13+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
14+
DEBIAN_FRONTEND: noninteractive
15+
strategy:
16+
matrix:
17+
image: ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }}
18+
container: ${{ matrix.image }}
19+
name: Build ${{ matrix.image }}
20+
steps:
21+
- name: Checkout Code for ubuntu:bionic
22+
if: matrix.image == 'ubuntu:bionic'
23+
uses: actions/checkout@v3
24+
25+
- name: Checkout Code for other versions
26+
if: matrix.image != 'ubuntu:bionic'
27+
uses: actions/checkout@v4
28+
29+
- name: Install dependencies
30+
run: |
31+
apt-get -qq update -y
32+
apt-get install -y \
33+
build-essential autoconf automake libpcre3-dev libevent-dev \
34+
pkg-config zlib1g-dev libssl-dev libboost-all-dev cmake flex
35+
36+
- name: Build
37+
run: autoreconf -ivf && ./configure && make -j
38+
639
build-notls:
740
runs-on: ubuntu-latest
841
steps:
@@ -107,7 +140,7 @@ jobs:
107140
runs-on: macos-latest
108141
continue-on-error: true
109142
steps:
110-
- uses: actions/checkout@v1
143+
- uses: actions/checkout@v4
111144
- name: Install dependencies
112145
run: brew install autoconf automake libtool libevent openssl@${{ matrix.openssl }}
113146
- name: Build
@@ -122,7 +155,7 @@ jobs:
122155
platform: [macos-12]
123156
runs-on: ${{ matrix.platform }}
124157
steps:
125-
- uses: actions/checkout@v1
158+
- uses: actions/checkout@v4
126159
- name: Install dependencies
127160
run: brew install autoconf automake libtool libevent openssl@1.1
128161
- name: Build
@@ -135,7 +168,7 @@ jobs:
135168
platform: [macos-12]
136169
runs-on: ${{ matrix.platform }}
137170
steps:
138-
- uses: actions/checkout@v1
171+
- uses: actions/checkout@v4
139172
- name: Install dependencies
140173
run: brew install autoconf automake libtool libevent pkg-config
141174
- name: Install openssl v1.0.2

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ jobs:
123123
needs: build-binary-package
124124
env:
125125
ARCH: amd64
126+
# required by ubuntu:bionic
127+
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
128+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
126129
strategy:
127130
matrix:
128131
image: ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }}
@@ -136,7 +139,15 @@ jobs:
136139
exit 1
137140
fi
138141
echo "BUILD_ARCH=$BUILD_ARCH" >> $GITHUB_ENV
139-
- name: Get binary packages
142+
- name: Get binary packages for ubuntu:bionic
143+
if: matrix.image == 'ubuntu:bionic'
144+
uses: actions/download-artifact@v3
145+
with:
146+
name: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
147+
path: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
148+
149+
- name: Get binary packages for other versions
150+
if: matrix.image != 'ubuntu:bionic'
140151
uses: actions/download-artifact@v4
141152
with:
142153
name: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}

0 commit comments

Comments
 (0)