Skip to content

Commit

Permalink
github-ci: install prepared cbindgen on rpm distros
Browse files Browse the repository at this point in the history
Currently cbindgen from system packages is broken, for now use the
cbindgen artifact we build.
  • Loading branch information
jasonish committed Oct 9, 2024
1 parent b839574 commit 0f18cff
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
name: AlmaLinux 9
runs-on: ubuntu-latest
container: almalinux:9
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:
# Cache Rust stuff.
- name: Cache cargo registry
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: git config --global --add safe.directory /__w/suricata/suricata

- uses: ./.github/actions/install-cbindgen
# Download and extract dependency archives created during prep
# job.
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
name: AlmaLinux 9 Test Templates
runs-on: ubuntu-latest
container: almalinux:9
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:
- name: Cache RPMs
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
Expand Down Expand Up @@ -288,6 +288,8 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: git config --global --add safe.directory /__w/suricata/suricata

- uses: ./.github/actions/install-cbindgen

# Download and extract dependency archives created during prep
# job.
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
Expand Down Expand Up @@ -528,6 +530,8 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: git config --global --add safe.directory /__w/suricata/suricata

- uses: ./.github/actions/install-cbindgen

# Prebuild check for duplicate SIDs
- name: Check for duplicate SIDs
run: |
Expand Down Expand Up @@ -656,7 +660,7 @@ jobs:
name: Fedora 39 (Suricata Verify codecov)
runs-on: ubuntu-latest
container: fedora:39
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:

# Cache Rust stuff.
Expand Down Expand Up @@ -717,6 +721,7 @@ jobs:
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.67.1 -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: ./.github/actions/install-cbindgen
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
Expand Down Expand Up @@ -752,7 +757,7 @@ jobs:
name: Fedora 39 (clang, debug, asan, wshadow, rust-strict, systemd)
runs-on: ubuntu-latest
container: fedora:39
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:

# Cache Rust stuff.
Expand Down Expand Up @@ -812,6 +817,7 @@ jobs:
which \
zlib-devel
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: ./.github/actions/install-cbindgen
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
Expand Down Expand Up @@ -857,7 +863,7 @@ jobs:
name: Fedora 39 (gcc, debug, asan, wshadow, rust-strict)
runs-on: ubuntu-latest
container: fedora:39
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:

# Cache Rust stuff.
Expand Down Expand Up @@ -906,6 +912,7 @@ jobs:
zlib-devel
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: ./.github/actions/install-cbindgen
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
Expand Down Expand Up @@ -946,7 +953,7 @@ jobs:
name: Fedora 40 (clang, debug, asan, wshadow, rust-strict, systemd)
runs-on: ubuntu-latest
container: fedora:40
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:

# Cache Rust stuff.
Expand Down Expand Up @@ -1005,6 +1012,7 @@ jobs:
zlib-devel
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: ./.github/actions/install-cbindgen
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
Expand Down Expand Up @@ -1046,7 +1054,7 @@ jobs:
name: Fedora 40 (gcc, debug, asan, wshadow, rust-strict)
runs-on: ubuntu-latest
container: fedora:40
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:

# Cache Rust stuff.
Expand Down Expand Up @@ -1094,6 +1102,7 @@ jobs:
which \
zlib-devel
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: ./.github/actions/install-cbindgen
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
Expand Down Expand Up @@ -1137,7 +1146,7 @@ jobs:
name: Fedora 40 (non-root, debug, clang, asan, wshadow, rust-strict)
runs-on: ubuntu-latest
container: fedora:40
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:
- name: Determine number of CPUs
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
Expand Down Expand Up @@ -1179,6 +1188,7 @@ jobs:
zlib-devel
- run: adduser suricata
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: ./.github/actions/install-cbindgen
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
Expand Down Expand Up @@ -1285,11 +1295,12 @@ jobs:
else
exit 0
fi
almalinux-9-minimal-recommended-dependecies:
name: AlmaLinux 9 (Minimal/Recommended Build)
runs-on: ubuntu-latest
container: almalinux:9
needs: [prepare-deps]
needs: [prepare-deps, prepare-cbindgen]
steps:
# Cache Rust stuff.
- name: Cache cargo registry
Expand Down Expand Up @@ -1324,6 +1335,7 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: ./.github/actions/install-cbindgen
- run: git config --global --add safe.directory /__w/suricata/suricata
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16

Expand Down

0 comments on commit 0f18cff

Please sign in to comment.