]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: run cargo update test on pull requests 11326/head
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Jun 2024 04:41:49 +0000 (22:41 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2024 19:09:01 +0000 (21:09 +0200)
Previously it was run once a week, hiding some issues until
Monday's. Instead run on pull requests, but still not every push.

.github/workflows/rust-checks.yml

index 142832f4d8f06cd9c91ae9a9a98b123ba3e6d5a9..ac9b9bb3ead416e53fbc7adac53405a764a638c3 100644 (file)
@@ -4,6 +4,7 @@ on:
   schedule:
     # Run on Monday mornings, 11AM UTC.
     - cron: '0 11 * * 1'
+  pull_request:
   # Enable push for testing when working on this file.
   #push:
   workflow_dispatch:
@@ -14,9 +15,6 @@ concurrency:
 
 permissions: read-all
 
-env:
-  RUST_VERSION_MIN: "1.63.0"
-
 jobs:
 
   # This job runs `cargo audit` and will exit with a failure code if
@@ -160,11 +158,11 @@ jobs:
                 sudo \
                 which \
                 zlib-devel
+      - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
       - name: Install Minimum Supported Rust Version
         run: |
-          curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${RUST_VERSION_MIN} -y
+          curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $(awk -F '"' '/rust-version/ { print $2 }' rust/Cargo.toml.in)
           echo "$HOME/.cargo/bin" >> $GITHUB_PATH
-      - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
       - name: Configure Suricata
         run: |
           ./scripts/bundle.sh libhtp