1111permissions :
1212 contents : read
1313
14+ env :
15+ RUST_VERSION : " 1.87.0"
16+
1417jobs :
1518 build :
1619 name : Build on ${{ matrix.os }} (${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }})
@@ -80,17 +83,18 @@ jobs:
8083
8184 - name : Install rust
8285 id : rust-toolchain
83- uses : dtolnay/rust-toolchain@1.76.0
86+ uses : dtolnay/rust-toolchain@master
8487 with :
8588 components : llvm-tools
89+ toolchain : ${{ env.RUST_VERSION }}
8690
8791 - name : Build wheels
8892 uses : PyO3/maturin-action@v1
8993 with :
9094 target : ${{ matrix.target }}
9195 manylinux : ${{ matrix.manylinux || 'auto' }}
9296 args : --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10 pypy3.11' }}
93- rust-toolchain : 1.76.0
97+ rust-toolchain : ${{ env.RUST_VERSION }}
9498 docker-options : -e CI
9599
96100 - name : List wheels.
@@ -138,9 +142,10 @@ jobs:
138142
139143 - name : Install rust.
140144 id : rust-toolchain
141- uses : dtolnay/rust-toolchain@1.76.0
145+ uses : dtolnay/rust-toolchain@master
142146 with :
143147 components : llvm-tools
148+ toolchain : ${{ env.RUST_VERSION }}
144149
145150 - name : Set RUST_HOST.
146151 shell : bash
@@ -151,7 +156,7 @@ jobs:
151156 with :
152157 manylinux : auto
153158 args : --release --out pgo-wheel --interpreter ${{ matrix.interpreter }}
154- rust-toolchain : 1.76.0
159+ rust-toolchain : ${{ env.RUST_VERSION }}
155160 docker-options : -e CI
156161 env :
157162 RUSTFLAGS : " -Cprofile-generate=${{ github.workspace }}/profdata"
@@ -164,7 +169,7 @@ jobs:
164169 uv run pytest . --benchmark-enable
165170
166171 # we can't use github.workspace here because of Windows with backslashes
167- 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"'
172+ rustup run ${{ env.RUST_VERSION }} bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata >> "$GITHUB_ENV"'
168173
169174 - name : Prepare merged PGO data.
170175 run : ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
@@ -174,7 +179,7 @@ jobs:
174179 with :
175180 manylinux : auto
176181 args : --release --out dist --interpreter ${{ matrix.interpreter }}
177- rust-toolchain : 1.76.0
182+ rust-toolchain : ${{ env.RUST_VERSION }}
178183 docker-options : -e CI
179184 env :
180185 RUSTFLAGS : " -Cprofile-use=${{ github.workspace }}/merged.profdata"
0 commit comments