File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 36
36
linux-build-lib :
37
37
name : linux build test
38
38
runs-on : ubuntu-latest
39
+ # note: do not use amd/rust container to preserve disk space
39
40
steps :
40
41
- uses : actions/checkout@v4
41
42
with :
45
46
run : |
46
47
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
47
48
source $HOME/.cargo/env
48
- rustup default stable
49
+ rustup toolchain install
49
50
- name : Install Protobuf Compiler
50
51
run : sudo apt-get install -y protobuf-compiler
51
52
- name : Prepare cargo build
58
59
name : cargo test 'extended_tests' (amd64)
59
60
needs : linux-build-lib
60
61
runs-on : ubuntu-latest
62
+ # note: do not use amd/rust container to preserve disk space
61
63
steps :
62
64
- uses : actions/checkout@v4
63
65
with :
69
71
run : |
70
72
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
71
73
source $HOME/.cargo/env
72
- rustup default stable
74
+ rustup toolchain install
73
75
- name : Install Protobuf Compiler
74
76
run : sudo apt-get install -y protobuf-compiler
75
77
# For debugging, test binaries can be large.
Original file line number Diff line number Diff line change @@ -117,8 +117,11 @@ test_source_distribution() {
117
117
118
118
# build and test rust
119
119
120
+ # install the needed version of rust defined in rust-toolchain.toml
121
+ rustup toolchain install
122
+
120
123
# raises on any formatting errors
121
- rustup component add rustfmt --toolchain stable
124
+ rustup component add rustfmt
122
125
cargo fmt --all -- --check
123
126
124
127
# Clone testing repositories into the expected location
You can’t perform that action at this time.
0 commit comments