Skip to content

Commit 06a98a3

Browse files
committed
ci: Use 1.66 rust compiler in generate-keys.sh
The newer version of Rust throws lints while compiling old Parsec releases. So use 1.66 MSRv instead to compile and generate the artifacts in generate-keys.sh script. Signed-off-by: Gowtham Suresh Kumar <[email protected]>
1 parent a4f939f commit 06a98a3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

e2e_tests/docker_image/generate-keys.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
set -xeuf -o pipefail
1010

11+
12+
rustup install 1.66.0
13+
1114
wait_for_process() {
1215
while [ -z "$(pgrep $1)" ]; do
1316
sleep 0.1
@@ -94,7 +97,7 @@ generate_and_store_keys_for_ondisk_KIM()
9497
mv /tmp/create_keys/parsec/NVChip /tmp/ondisk
9598

9699
# Build the service with trusted service provider
97-
cargo build --features "trusted-service-provider, all-authenticators"
100+
cargo +1.66.0 build --features "trusted-service-provider, all-authenticators"
98101
# Start the service with trusted service provider
99102
./target/debug/parsec -c e2e_tests/provider_cfg/trusted-service/config.toml &
100103
wait_for_process "parsec"
@@ -144,7 +147,7 @@ key_info_manager = "sqlite-manager"
144147
EOF
145148
popd
146149
# Build the service with trusted service provider
147-
cargo build --features "trusted-service-provider, all-authenticators"
150+
cargo +1.66.0 build --features "trusted-service-provider, all-authenticators"
148151
# Start the service with trusted service provider
149152
./target/debug/parsec -c e2e_tests/provider_cfg/trusted-service/config-sqlite.toml &
150153
wait_for_process "parsec"
@@ -167,7 +170,7 @@ git submodule update --init --recursive
167170
cargo install parsec-tool
168171

169172
# Build service with all providers (trusted-service-provider isn't included)
170-
cargo build --features "all-providers, all-authenticators"
173+
cargo +1.66.0 build --features "all-providers, all-authenticators"
171174

172175
# Start the service with all providers (trusted-service-provider isn't included)
173176
configure_tpm

0 commit comments

Comments
 (0)