Skip to content

Commit 27fcdb3

Browse files
committed
Introduce zizmor
1 parent 29a5e6d commit 27fcdb3

File tree

4 files changed

+174
-84
lines changed

4 files changed

+174
-84
lines changed

.github/actions/build-pgo-wheel/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
run: mkdir -p ${{ github.workspace }}/profdata
2222

2323
- name: build initial wheel
24-
uses: PyO3/maturin-action@v1
24+
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
2525
with:
2626
manylinux: auto
2727
args: >
@@ -41,15 +41,17 @@ runs:
4141
cd crates/jiter-python
4242
uv pip install jiter --no-index --no-deps --find-links pgo-wheel --force-reinstall
4343
uv run bench.py jiter jiter-cache
44-
rustup run ${{ inputs.rust-toolchain }} bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/$RUST_HOST/bin/llvm-profdata >> "$GITHUB_ENV"'
44+
rustup run ${INPUTS_RUST_TOOLCHAIN} bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/$RUST_HOST/bin/llvm-profdata >> "$GITHUB_ENV"'
4545
shell: bash
46+
env:
47+
INPUTS_RUST_TOOLCHAIN: ${{ inputs.rust-toolchain }}
4648

4749
- name: merge pgo data
48-
run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
50+
run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata # zizmor: ignore[template-injection]
4951
shell: pwsh # because it handles paths on windows better, and works well enough on unix for this step
5052

5153
- name: build pgo-optimized wheel
52-
uses: PyO3/maturin-action@v1
54+
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
5355
with:
5456
manylinux: auto
5557
args: >

0 commit comments

Comments
 (0)