]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: add MSRV as rust-version 10674/head
authorVictor Julien <vjulien@oisf.net>
Wed, 20 Mar 2024 09:34:05 +0000 (10:34 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 20 Mar 2024 09:59:53 +0000 (10:59 +0100)
Update github-actions to use it for the MSRV check.

.github/workflows/builds.yml
rust/Cargo.toml.in

index 98bdea03b3c5770c3127b79e473551c0606cde56..bc1ef3f560b4a8d2d3fbc2a6fec11d502ed0c80a 100644 (file)
@@ -1221,15 +1221,15 @@ jobs:
                 python3-yaml \
                 zlib1g \
                 zlib1g-dev
-      - name: Install Rust
-        run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${RUST_VERSION_MIN} -y
-      - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
       - name: Download suricata.tar.gz
         uses: actions/download-artifact@v2
         with:
           name: dist
       - name: Extract
         run: tar zxvf suricata-*.tar.gz --strip-components=1
+      - name: Install Rust
+        run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $(grep rust-version rust/Cargo.toml.in|sed 's/\"//g'|awk '{print $3}') -y
+      - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
       - name: Configure
         run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
       - name: Build
index 2f9a7aa59f2ef6c894bc5c1f67cbe2bd5f0e0112..13c3cf21aa08f0cd26889cd369a7cd585150a101 100644 (file)
@@ -2,6 +2,7 @@
 name = "suricata"
 version = "@PACKAGE_VERSION@"
 edition = "2018"
+rust-version = "1.41.1"
 
 [lib]
 crate-type = ["staticlib", "rlib"]