github-ci: update non-root build to Fedora 37

As Fedora 36 will be EOL in a month.
pull/8755/head
Jason Ish 2 years ago committed by Victor Julien
parent b0bc95d7c1
commit bcbceb13f8

@ -336,10 +336,10 @@ jobs:
run: cargo clippy --all-features run: cargo clippy --all-features
working-directory: rust working-directory: rust
# This build also creates the distribution package that some other builds # AlmaLinux 8 builder and distribution archive builder that some
# depend on. # other builds will depend on.
almalinux-8: almalinux-8:
name: AlmaLinux 8 name: AlmaLinux 8 (Dist builder)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: almalinux:8 container: almalinux:8
needs: [prepare-deps, prepare-cbindgen] needs: [prepare-deps, prepare-cbindgen]
@ -1221,17 +1221,21 @@ jobs:
- run: suricata-update -V - run: suricata-update -V
- run: suricatasc -h - run: suricatasc -h
fedora-36-non-root: # This job builds and tests Suricata as a non-root user as some
name: Fedora 36 (non-root, debug, clang, asan, wshadow, rust-strict, systemd) # issues only show up when not running as root, and by default all
# jobs in GitHub actions are run as root inside the container.
fedora-37-non-root:
name: Fedora 37 (non-root, debug, clang, asan, wshadow, rust-strict, systemd)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: fedora:36 container: fedora:37
needs: [prepare-deps, prepare-cbindgen] needs: [prepare-deps]
steps: steps:
- run: | - run: |
dnf -y install \ dnf -y install \
autoconf \ autoconf \
automake \ automake \
cargo \ cargo \
cbindgen \
ccache \ ccache \
clang \ clang \
diffutils \ diffutils \
@ -1277,13 +1281,6 @@ jobs:
- run: cp -a . /home/suricata/suricata - run: cp -a . /home/suricata/suricata
- run: chown -R suricata:suricata /home/suricata - run: chown -R suricata:suricata /home/suricata
- run: sudo -u suricata -s mkdir -p .cargo/bin
working-directory: /home/suricata
- run: sudo -u suricata -s cp suricata/prep/cbindgen .cargo/bin
working-directory: /home/suricata
- run: sudo -u suricata -s chmod 755 .cargo/bin/cbindgen
working-directory: /home/suricata
- run: sudo -u suricata -s ./autogen.sh - run: sudo -u suricata -s ./autogen.sh
working-directory: /home/suricata/suricata working-directory: /home/suricata/suricata

Loading…
Cancel
Save