Skip to content

Commit e328c62

Browse files
authored
Merge pull request github#7797 from github/hmac/pin-rust
Ruby: Pin Rust to 1.54
2 parents 8544cff + 9128426 commit e328c62

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/ruby-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
~/.cargo/registry
5151
~/.cargo/git
5252
ruby/target
53-
key: ${{ runner.os }}-ruby-rust-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
53+
key: ${{ runner.os }}-ruby-rust-cargo-${{ hashFiles('ruby/rust-toolchain.toml', 'ruby/**/Cargo.lock') }}
5454
- name: Check formatting
5555
run: cargo fmt --all -- --check
5656
- name: Build

ruby/actions/create-extractor-pack/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
~/.cargo/registry
1010
~/.cargo/git
1111
ruby/target
12-
key: ${{ runner.os }}-ruby-qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
12+
key: ${{ runner.os }}-ruby-qltest-cargo-${{ hashFiles('ruby/rust-toolchain.toml', 'ruby/**/Cargo.lock') }}
1313
- name: Build Extractor
1414
shell: bash
1515
run: scripts/create-extractor-pack.sh

ruby/rust-toolchain.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file specifies the Rust version used to develop and test the Ruby
2+
# extractor. It is set to the lowest version of Rust we want to support.
3+
4+
[toolchain]
5+
channel = "1.54"
6+
profile = "default"

0 commit comments

Comments
 (0)