Skip to content

Commit

Permalink
rust: add MSRV as rust-version
Browse files Browse the repository at this point in the history
Update github-actions to use it for the MSRV check.
  • Loading branch information
victorjulien committed Mar 20, 2024
1 parent 7b53aed commit a4d3e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions rust/Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "suricata"
version = "@PACKAGE_VERSION@"
edition = "2018"
rust-version = "1.41.1"

[lib]
crate-type = ["staticlib", "rlib"]
Expand Down

0 comments on commit a4d3e9b

Please sign in to comment.