Skip to content

Commit 64f4c02

Browse files
committed
github-ci: update almalinux minimal build to use dist archive
Update the AlmaLinux recommended minimal build to use the pre built distribution archive as this is the type of build the documentation is targetting. (cherry picked from commit 01e9756)
1 parent e62deab commit 64f4c02

2 files changed

Lines changed: 11 additions & 29 deletions

File tree

.github/workflows/builds.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ jobs:
12291229
name: AlmaLinux 9 (Minimal/Recommended Build)
12301230
runs-on: ubuntu-latest
12311231
container: almalinux:9
1232-
needs: [prepare-deps, prepare-cbindgen]
1232+
needs: [ubuntu-22-04-dist]
12331233
steps:
12341234
# Cache Rust stuff.
12351235
- name: Cache cargo registry
@@ -1241,36 +1241,18 @@ jobs:
12411241
- name: Determine number of CPUs
12421242
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
12431243

1244-
- name: Install git dependencies
1245-
run: |
1246-
dnf -y install \
1247-
sudo \
1248-
git \
1249-
libtool \
1250-
which
1251-
1252-
- name: Install Almalinux 9 extra repositories
1253-
run : |
1254-
dnf -y update
1255-
dnf -y install dnf-plugins-core epel-release
1256-
dnf config-manager --set-enabled crb
1244+
- name: Download suricata.tar.gz
1245+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3
1246+
with:
1247+
name: dist
1248+
- run: tar xf suricata-*.tar.gz --strip-components=1
12571249

1250+
- name: Update packages and install sudo
1251+
run: dnf -y update && dnf install -y sudo
12581252

1259-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1260-
- uses: ./.github/actions/install-cbindgen
1261-
- run: git config --global --add safe.directory /__w/suricata/suricata
1262-
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
1263-
12641253
- name: Install minimal dependencies
12651254
run: ./scripts/docs-almalinux9-minimal-build.sh
12661255

1267-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1268-
- run: git config --global --add safe.directory /__w/suricata/suricata
1269-
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
1270-
with:
1271-
name: prep
1272-
path: prep
1273-
- run: ./autogen.sh
12741256
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
12751257
- run: make -j ${{ env.CPUS }}
12761258
- run: ./src/suricata --build-info # check if we can run Suricata

scripts/docs-almalinux9-minimal-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Serves for RPM-based docs and is verified by Github Actions
44

55
# install-guide-documentation tag start: Minimal RPM-based dependencies
6-
sudo dnf install -y rustc cargo cbindgen
7-
sudo dnf install -y gcc gcc-c++ jansson-devel libpcap-devel \
6+
sudo dnf install -y dnf-plugins-core epel-release
7+
sudo dnf install -y cargo gcc jansson-devel libpcap-devel \
88
libyaml-devel make pcre2-devel zlib-devel
9-
# install-guide-documentation tag end: Minimal RPM-based dependencies
9+
# install-guide-documentation tag end: Minimal RPM-based dependencies

0 commit comments

Comments
 (0)