7878 python-version : ' 3.11'
7979 architecture : ${{ matrix.python-architecture || 'x64' }}
8080
81- - name : Install rust stable
81+ - name : Install rust
8282 id : rust-toolchain
83- uses : dtolnay/rust-toolchain@stable
83+ uses : dtolnay/rust-toolchain@1.76.0
8484 with :
8585 components : llvm-tools
8686
9191 manylinux : ${{ matrix.manylinux || 'auto' }}
9292 container : ${{ matrix.container }}
9393 args : --release --out dist --interpreter ${{ matrix.maturin-interpreter || matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
94- rust-toolchain : stable
94+ rust-toolchain : 1.76.0
9595 docker-options : -e CI
9696
9797 - name : List wheels.
@@ -131,9 +131,9 @@ jobs:
131131 with :
132132 python-version : ${{ matrix.interpreter }}
133133
134- - name : Install rust stable .
134+ - name : Install rust.
135135 id : rust-toolchain
136- uses : dtolnay/rust-toolchain@stable
136+ uses : dtolnay/rust-toolchain@1.76.0
137137 with :
138138 components : llvm-tools
139139
@@ -146,7 +146,7 @@ jobs:
146146 with :
147147 manylinux : auto
148148 args : --release --out pgo-wheel --interpreter ${{ matrix.interpreter }}
149- rust-toolchain : stable
149+ rust-toolchain : 1.76.0
150150 docker-options : -e CI
151151 env :
152152 RUSTFLAGS : " -Cprofile-generate=${{ github.workspace }}/profdata"
@@ -160,7 +160,7 @@ jobs:
160160 pytest . --benchmark-enable
161161
162162 # we can't use github.workspace here because of Windows with backslashes
163- rustup run stable bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata >> "$GITHUB_ENV"'
163+ rustup run 1.76.0 bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata >> "$GITHUB_ENV"'
164164
165165 - name : Prepare merged PGO data.
166166 run : ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
@@ -170,7 +170,7 @@ jobs:
170170 with :
171171 manylinux : auto
172172 args : --release --out dist --interpreter ${{ matrix.interpreter }}
173- rust-toolchain : stable
173+ rust-toolchain : 1.76.0
174174 docker-options : -e CI
175175 env :
176176 RUSTFLAGS : " -Cprofile-use=${{ github.workspace }}/merged.profdata"
0 commit comments