From 93cdb8bfad1ca68596627e414aaa827008ffcf6d Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:35:36 +0000 Subject: [PATCH 01/14] ci: Pin `actions/checkout` to 7.0.1 hash See: https://github.com/actions/checkout/releases/tag/v7.0.1 This is the same version we're already implicitly using. Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dfa8eef..5f5e67d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: env: RUSTUP_TOOLCHAIN: "1.88.0" steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - run: cargo test --manifest-path psm/Cargo.toml --all-targets @@ -62,7 +62,7 @@ jobs: CFLAGS: ${{ matrix.cflags }} RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - if: ${{ matrix.extra_target }} run: rustup target add --toolchain ${{ env.RUSTUP_TOOLCHAIN }} ${{ matrix.extra_target }} @@ -87,7 +87,7 @@ jobs: - x86_64-pc-windows-msvc - i686-pc-windows-msvc steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo test --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} -- --nocapture env: @@ -109,7 +109,7 @@ jobs: - i686-pc-windows-gnu manifest: ["psm/Cargo.toml", "Cargo.toml"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - run: cargo test --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} env: @@ -131,7 +131,7 @@ jobs: - x86_64-pc-windows-gnullvm manifest: ["psm/Cargo.toml", "Cargo.toml"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Cache llvm-mingw id: llvm_mingw_cache uses: actions/cache@v6 @@ -178,7 +178,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: | @@ -202,7 +202,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} @@ -233,7 +233,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: cargo install cross --git https://github.com/cross-rs/cross @@ -254,7 +254,7 @@ jobs: env: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} @@ -273,7 +273,7 @@ jobs: env: RUSTUP_TOOLCHAIN: stable steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Add toolchain shims run: | @@ -316,7 +316,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target wasm32-wasip1 - run: | curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v24.0.0/wasmtime-v24.0.0-x86_64-linux.tar.xz | tar xJf - -C ${{ runner.tool_cache }} @@ -335,7 +335,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --component miri - name: Setup Miri run: cargo miri setup From 5ca7f6a80a9d5ca6ebe8b0994143bcc8362f3572 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:37:45 +0000 Subject: [PATCH 02/14] ci: Pin `actions/cache` to 6.1.0 hash See: https://github.com/actions/cache/releases/tag/v6.1.0 This is the same version we're already implicitly using. Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f5e67d..d920276 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -134,7 +134,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Cache llvm-mingw id: llvm_mingw_cache - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-22.04-x86_64 key: llvm-mingw-${{ runner.os }}-${{ env.LLVM_MINGW_VERSION }} From 9b6ec8e4ad3e69c1edf5839b98eabd2899be79b9 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:39:03 +0000 Subject: [PATCH 03/14] ci: Disable credential persistence Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d920276..e2deed4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,8 @@ jobs: RUSTUP_TOOLCHAIN: "1.88.0" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - run: cargo test --manifest-path psm/Cargo.toml --all-targets @@ -63,6 +65,8 @@ jobs: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - if: ${{ matrix.extra_target }} run: rustup target add --toolchain ${{ env.RUSTUP_TOOLCHAIN }} ${{ matrix.extra_target }} @@ -88,6 +92,8 @@ jobs: - i686-pc-windows-msvc steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo test --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} -- --nocapture env: @@ -110,6 +116,8 @@ jobs: manifest: ["psm/Cargo.toml", "Cargo.toml"] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal - run: cargo test --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} env: @@ -132,6 +140,8 @@ jobs: manifest: ["psm/Cargo.toml", "Cargo.toml"] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Cache llvm-mingw id: llvm_mingw_cache uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 @@ -179,6 +189,8 @@ jobs: RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: | @@ -203,6 +215,8 @@ jobs: RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} @@ -234,6 +248,8 @@ jobs: RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: cargo install cross --git https://github.com/cross-rs/cross @@ -255,6 +271,8 @@ jobs: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} @@ -274,6 +292,8 @@ jobs: RUSTUP_TOOLCHAIN: stable steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} - name: Add toolchain shims run: | @@ -317,6 +337,8 @@ jobs: RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target wasm32-wasip1 - run: | curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v24.0.0/wasmtime-v24.0.0-x86_64-linux.tar.xz | tar xJf - -C ${{ runner.tool_cache }} @@ -336,6 +358,8 @@ jobs: RUSTUP_TOOLCHAIN: nightly steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --component miri - name: Setup Miri run: cargo miri setup From 2e55bdfff98ca19b86c41747b2143c0d579d8235 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:47:17 +0000 Subject: [PATCH 04/14] ci: Prefer shell expansion for `RUSTUP_TOOLCHAIN` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2deed4..f7a4681 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,12 +29,15 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal - run: cargo test --manifest-path psm/Cargo.toml --all-targets native-test: name: Test ${{ matrix.manifest }} on ${{ matrix.os }} with ${{ matrix.rust_toolchain }} and ${{ matrix.mode }} runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash strategy: fail-fast: false matrix: @@ -67,9 +70,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal - if: ${{ matrix.extra_target }} - run: rustup target add --toolchain ${{ env.RUSTUP_TOOLCHAIN }} ${{ matrix.extra_target }} + run: rustup target add --toolchain ${RUSTUP_TOOLCHAIN} ${{ matrix.extra_target }} - run: cargo test --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --nocapture - run: cargo test --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} --examples -- --nocapture - if: ${{ matrix.extra_target }} @@ -94,7 +97,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - run: cargo test --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} -- --nocapture env: CC: "C:/Program Files/LLVM/bin/clang-cl.exe" @@ -118,7 +121,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal + - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal - run: cargo test --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} env: CFLAGS: "-Werror -Wundef" @@ -153,7 +156,7 @@ jobs: run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${{ env.LLVM_MINGW_VERSION }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJf - - name: Add llvm-mingw to PATH run: echo "${{ github.workspace }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - run: cargo check --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} cross-linux-test: @@ -191,7 +194,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: | cargo install cross --git https://github.com/cross-rs/cross @@ -217,7 +220,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} cross-build: @@ -250,7 +253,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - name: Install cross run: cargo install cross --git https://github.com/cross-rs/cross - run: cross build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} @@ -273,7 +276,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - run: cargo build --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} cross-windows-build: @@ -294,7 +297,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - name: Add toolchain shims run: | set -eux @@ -339,7 +342,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --target wasm32-wasip1 + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target wasm32-wasip1 - run: | curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v24.0.0/wasmtime-v24.0.0-x86_64-linux.tar.xz | tar xJf - -C ${{ runner.tool_cache }} echo "${{ runner.tool_cache }}/wasmtime-v24.0.0-x86_64-linux" >> $GITHUB_PATH @@ -349,6 +352,9 @@ jobs: miri-test: name: Test stacker with Miri on ${{ matrix.os }} runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash strategy: fail-fast: false matrix: @@ -360,7 +366,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${{ env.RUSTUP_TOOLCHAIN }} --profile minimal --component miri + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --component miri - name: Setup Miri run: cargo miri setup - name: Test with Miri From 7f18a187ca8e38e9afa859fd6ffd926431c26fa5 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:49:30 +0000 Subject: [PATCH 05/14] ci: Prefer shell expansion for `LLVM_MINGW_VERSION` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7a4681..4084d0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -153,9 +153,9 @@ jobs: key: llvm-mingw-${{ runner.os }}-${{ env.LLVM_MINGW_VERSION }} - name: Install llvm-mingw if: steps.llvm_mingw_cache.outputs.cache-hit != 'true' - run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${{ env.LLVM_MINGW_VERSION }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJf - + run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_MINGW_VERSION}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJf - - name: Add llvm-mingw to PATH - run: echo "${{ github.workspace }}/llvm-mingw-${{ env.LLVM_MINGW_VERSION }}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH + run: echo "${{ github.workspace }}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - run: cargo check --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} From 69e9f8d8251586a56e60fd07cebc161d35aaf422 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:59:20 +0000 Subject: [PATCH 06/14] ci: Expand `matrix.rust_target` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4084d0f..74447a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,6 +86,7 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: stable + RUST_TARGET: ${{ matrix.rust_target }} strategy: fail-fast: false matrix: @@ -97,8 +98,8 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - - run: cargo test --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} -- --nocapture + - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal --target ${env:RUST_TARGET} + - run: cargo test --target=${env:RUST_TARGET} --manifest-path=${{ matrix.manifest }} -- --nocapture env: CC: "C:/Program Files/LLVM/bin/clang-cl.exe" CFLAGS: "-Werror -Wundef" @@ -109,6 +110,7 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }}-${{ matrix.rust_target }} + RUST_TARGET: ${{ matrix.rust_target }} strategy: fail-fast: false matrix: @@ -122,7 +124,7 @@ jobs: with: persist-credentials: false - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal - - run: cargo test --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} + - run: cargo test --target ${env:RUST_TARGET} --manifest-path=${{ matrix.manifest }} env: CFLAGS: "-Werror -Wundef" @@ -133,6 +135,7 @@ jobs: env: LLVM_MINGW_VERSION: "20250417" RUSTUP_TOOLCHAIN: stable + RUST_TARGET: ${{ matrix.rust_target }} strategy: fail-fast: false matrix: @@ -156,8 +159,8 @@ jobs: run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_MINGW_VERSION}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJf - - name: Add llvm-mingw to PATH run: echo "${{ github.workspace }}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - - run: cargo check --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} + - run: cargo check --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} cross-linux-test: name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with nightly ${{ matrix.mode }} @@ -190,17 +193,18 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: nightly + RUST_TARGET: ${{ matrix.rust_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - name: Install cross run: | cargo install cross --git https://github.com/cross-rs/cross - name: Test run: | - cross test --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --test-threads=1 --nocapture + cross test --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --test-threads=1 --nocapture native-build: name: Build ${{ matrix.manifest }} to ${{ matrix.rust_target }} on nightly @@ -216,12 +220,13 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: nightly + RUST_TARGET: ${{ matrix.rust_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - - run: cargo build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} + - run: cargo build --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} cross-build: name: Cross-compile ${{ matrix.manifest }} to ${{ matrix.rust_target }} with cargo-cross @@ -249,14 +254,15 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: nightly + RUST_TARGET: ${{ matrix.rust_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - name: Install cross run: cargo install cross --git https://github.com/cross-rs/cross - - run: cross build --target ${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} + - run: cross build --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} cross-ios-build: name: Cross-compile ${{ matrix.manifest }} to ${{ matrix.rust_target }} on ${{ matrix.rust_toolchain }} @@ -272,12 +278,13 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} + RUST_TARGET: ${{ matrix.rust_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} - - run: cargo build --target=${{ matrix.rust_target }} --manifest-path=${{ matrix.manifest }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} + - run: cargo build --target=${RUST_TARGET} --manifest-path=${{ matrix.manifest }} cross-windows-build: name: Cross-compile ${{ matrix.manifest }} for ${{ matrix.rust_target }} from x86_64-unknown-linux-gnu @@ -293,11 +300,12 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: stable + RUST_TARGET: ${{ matrix.rust_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${{ matrix.rust_target }} + - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - name: Add toolchain shims run: | set -eux @@ -330,7 +338,7 @@ jobs: RUSTFLAGS: "-Lnative=/tmp/xwin/crt/lib/x86_64 -Lnative=/tmp/xwin/sdk/lib/um/x86_64 -Lnative=/tmp/xwin/sdk/lib/ucrt/x86_64" run: | set -eux - cargo build --target ${{ matrix.rust_target }} --manifest-path ${{ matrix.manifest }} + cargo build --target ${RUST_TARGET} --manifest-path ${{ matrix.manifest }} wasm-test: name: Test stacker on WASM From 5a22e0ccb0d1c9e10a889bf7e699b4d46d9a7d9e Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:08:20 +0000 Subject: [PATCH 07/14] ci: Expand `matrix.manifest` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74447a3..078c1e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,6 +66,7 @@ jobs: env: CFLAGS: ${{ matrix.cflags }} RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -73,12 +74,12 @@ jobs: - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal - if: ${{ matrix.extra_target }} run: rustup target add --toolchain ${RUSTUP_TOOLCHAIN} ${{ matrix.extra_target }} - - run: cargo test --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --nocapture - - run: cargo test --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} --examples -- --nocapture + - run: cargo test --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --nocapture + - run: cargo test --manifest-path=${MANIFEST} ${{ matrix.mode }} --examples -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --nocapture + run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} --examples -- --nocapture + run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${{ matrix.mode }} --examples -- --nocapture clang-cl-test: name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with clang-cl @@ -87,6 +88,7 @@ jobs: env: RUSTUP_TOOLCHAIN: stable RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} strategy: fail-fast: false matrix: @@ -99,7 +101,7 @@ jobs: with: persist-credentials: false - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal --target ${env:RUST_TARGET} - - run: cargo test --target=${env:RUST_TARGET} --manifest-path=${{ matrix.manifest }} -- --nocapture + - run: cargo test --target=${env:RUST_TARGET} --manifest-path=${env:MANIFEST} -- --nocapture env: CC: "C:/Program Files/LLVM/bin/clang-cl.exe" CFLAGS: "-Werror -Wundef" @@ -111,6 +113,7 @@ jobs: env: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }}-${{ matrix.rust_target }} RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} strategy: fail-fast: false matrix: @@ -124,7 +127,7 @@ jobs: with: persist-credentials: false - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal - - run: cargo test --target ${env:RUST_TARGET} --manifest-path=${{ matrix.manifest }} + - run: cargo test --target ${env:RUST_TARGET} --manifest-path=${env:MANIFEST} env: CFLAGS: "-Werror -Wundef" @@ -136,6 +139,7 @@ jobs: LLVM_MINGW_VERSION: "20250417" RUSTUP_TOOLCHAIN: stable RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} strategy: fail-fast: false matrix: @@ -160,7 +164,7 @@ jobs: - name: Add llvm-mingw to PATH run: echo "${{ github.workspace }}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - - run: cargo check --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} + - run: cargo check --target ${RUST_TARGET} --manifest-path=${MANIFEST} cross-linux-test: name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with nightly ${{ matrix.mode }} @@ -194,6 +198,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -204,7 +209,7 @@ jobs: cargo install cross --git https://github.com/cross-rs/cross - name: Test run: | - cross test --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} ${{ matrix.mode }} -- --test-threads=1 --nocapture + cross test --target ${RUST_TARGET} --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --test-threads=1 --nocapture native-build: name: Build ${{ matrix.manifest }} to ${{ matrix.rust_target }} on nightly @@ -221,12 +226,13 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - - run: cargo build --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} + - run: cargo build --target ${RUST_TARGET} --manifest-path=${MANIFEST} cross-build: name: Cross-compile ${{ matrix.manifest }} to ${{ matrix.rust_target }} with cargo-cross @@ -255,6 +261,7 @@ jobs: env: RUSTUP_TOOLCHAIN: nightly RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -262,7 +269,7 @@ jobs: - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - name: Install cross run: cargo install cross --git https://github.com/cross-rs/cross - - run: cross build --target ${RUST_TARGET} --manifest-path=${{ matrix.manifest }} + - run: cross build --target ${RUST_TARGET} --manifest-path=${MANIFEST} cross-ios-build: name: Cross-compile ${{ matrix.manifest }} to ${{ matrix.rust_target }} on ${{ matrix.rust_toolchain }} @@ -279,12 +286,13 @@ jobs: env: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - - run: cargo build --target=${RUST_TARGET} --manifest-path=${{ matrix.manifest }} + - run: cargo build --target=${RUST_TARGET} --manifest-path=${MANIFEST} cross-windows-build: name: Cross-compile ${{ matrix.manifest }} for ${{ matrix.rust_target }} from x86_64-unknown-linux-gnu @@ -301,6 +309,7 @@ jobs: env: RUSTUP_TOOLCHAIN: stable RUST_TARGET: ${{ matrix.rust_target }} + MANIFEST: ${{ matrix.manifest }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -338,7 +347,7 @@ jobs: RUSTFLAGS: "-Lnative=/tmp/xwin/crt/lib/x86_64 -Lnative=/tmp/xwin/sdk/lib/um/x86_64 -Lnative=/tmp/xwin/sdk/lib/ucrt/x86_64" run: | set -eux - cargo build --target ${RUST_TARGET} --manifest-path ${{ matrix.manifest }} + cargo build --target ${RUST_TARGET} --manifest-path ${MANIFEST} wasm-test: name: Test stacker on WASM From f3d08cc234393a133cd1aee3c90b7934aff0ffe7 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:33:10 +0000 Subject: [PATCH 08/14] ci: Expand `runner.tool_cache` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 078c1e6..3763844 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -355,15 +355,18 @@ jobs: timeout-minutes: 10 env: RUSTUP_TOOLCHAIN: nightly + steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target wasm32-wasip1 - run: | - curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v24.0.0/wasmtime-v24.0.0-x86_64-linux.tar.xz | tar xJf - -C ${{ runner.tool_cache }} - echo "${{ runner.tool_cache }}/wasmtime-v24.0.0-x86_64-linux" >> $GITHUB_PATH + curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v24.0.0/wasmtime-v24.0.0-x86_64-linux.tar.xz | tar xJf - -C ${TOOL_CACHE} + echo "${TOOL_CACHE}/wasmtime-v24.0.0-x86_64-linux" >> $GITHUB_PATH echo "CARGO_TARGET_WASM32_WASIP1_RUNNER=wasmtime run --" >> $GITHUB_ENV + env: + TOOL_CACHE: ${{ runner.tool_cache }} - run: cargo test --target wasm32-wasip1 --all -- --nocapture miri-test: From 1a426c9a863307f97248e6f524355fffa4a61b27 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:36:23 +0000 Subject: [PATCH 09/14] ci: Expand `matrix.mode` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3763844..1004f83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,6 +67,7 @@ jobs: CFLAGS: ${{ matrix.cflags }} RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} MANIFEST: ${{ matrix.manifest }} + MODE: ${{ matrix.mode }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -74,12 +75,12 @@ jobs: - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal - if: ${{ matrix.extra_target }} run: rustup target add --toolchain ${RUSTUP_TOOLCHAIN} ${{ matrix.extra_target }} - - run: cargo test --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --nocapture - - run: cargo test --manifest-path=${MANIFEST} ${{ matrix.mode }} --examples -- --nocapture + - run: cargo test --manifest-path=${MANIFEST} ${MODE} -- --nocapture + - run: cargo test --manifest-path=${MANIFEST} ${MODE} --examples -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --nocapture + run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${MODE} -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${{ matrix.mode }} --examples -- --nocapture + run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${MODE} --examples -- --nocapture clang-cl-test: name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with clang-cl @@ -199,6 +200,7 @@ jobs: RUSTUP_TOOLCHAIN: nightly RUST_TARGET: ${{ matrix.rust_target }} MANIFEST: ${{ matrix.manifest }} + MODE: ${{ matrix.mode }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -209,7 +211,7 @@ jobs: cargo install cross --git https://github.com/cross-rs/cross - name: Test run: | - cross test --target ${RUST_TARGET} --manifest-path=${MANIFEST} ${{ matrix.mode }} -- --test-threads=1 --nocapture + cross test --target ${RUST_TARGET} --manifest-path=${MANIFEST} ${MODE} -- --test-threads=1 --nocapture native-build: name: Build ${{ matrix.manifest }} to ${{ matrix.rust_target }} on nightly From 4203159a0e6157c52d24a8dd13ab052f92a4ed31 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:40:42 +0000 Subject: [PATCH 10/14] ci: Expand `matrix.extra_target` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1004f83..49c0916 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,19 +68,20 @@ jobs: RUSTUP_TOOLCHAIN: ${{ matrix.rust_toolchain }} MANIFEST: ${{ matrix.manifest }} MODE: ${{ matrix.mode }} + EXTRA_TARGET: ${{ matrix.extra_target }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal - if: ${{ matrix.extra_target }} - run: rustup target add --toolchain ${RUSTUP_TOOLCHAIN} ${{ matrix.extra_target }} + run: rustup target add --toolchain ${RUSTUP_TOOLCHAIN} ${EXTRA_TARGET} - run: cargo test --manifest-path=${MANIFEST} ${MODE} -- --nocapture - run: cargo test --manifest-path=${MANIFEST} ${MODE} --examples -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${MODE} -- --nocapture + run: cargo test --target=${EXTRA_TARGET} --manifest-path=${MANIFEST} ${MODE} -- --nocapture - if: ${{ matrix.extra_target }} - run: cargo test --target=${{ matrix.extra_target }} --manifest-path=${MANIFEST} ${MODE} --examples -- --nocapture + run: cargo test --target=${EXTRA_TARGET} --manifest-path=${MANIFEST} ${MODE} --examples -- --nocapture clang-cl-test: name: Test ${{ matrix.manifest }} on ${{ matrix.rust_target }} with clang-cl From 4317ae5ff738fb06435d8bb210eb11ca654d49af Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:42:15 +0000 Subject: [PATCH 11/14] ci: Expand `matrix.xwin_version` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49c0916..809cc47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -313,6 +313,7 @@ jobs: RUSTUP_TOOLCHAIN: stable RUST_TARGET: ${{ matrix.rust_target }} MANIFEST: ${{ matrix.manifest }} + XWIN_VERSION: ${{ matrix.xwin_version }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -327,7 +328,7 @@ jobs: - name: Install Windows SDK run: | set -eux - xwin_version=${{ matrix.xwin_version }} + xwin_version=${XWIN_VERSION} xwin_prefix="xwin-$xwin_version-x86_64-unknown-linux-musl" # Install xwin to cargo/bin via github release. Note you could also just use `cargo install xwin`. From fa5efc9853d867426cbce6ddbf08220c41a2b26f Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:44:50 +0000 Subject: [PATCH 12/14] ci: Expand `github.workspace` in `env` Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 809cc47..e5b79d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -164,7 +164,9 @@ jobs: if: steps.llvm_mingw_cache.outputs.cache-hit != 'true' run: curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_MINGW_VERSION}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJf - - name: Add llvm-mingw to PATH - run: echo "${{ github.workspace }}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH + run: echo "${GH_WORKSPACE}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64/bin" >> $GITHUB_PATH + env: + GH_WORKSPACE: ${{ github.workspace }} - run: rustup install ${RUSTUP_TOOLCHAIN} --profile minimal --target ${RUST_TARGET} - run: cargo check --target ${RUST_TARGET} --manifest-path=${MANIFEST} From e1f85903cd74d843d7c0d2b9ec6f6e09b0d8bd88 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Sat, 31 Oct 2026 00:10:55 +0000 Subject: [PATCH 13/14] ci: Use `--force-non-host` to install Windows GNU toolchains These were failing with the message: ```console $ rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal error: toolchain 'nightly-i686-pc-windows-gnu' may not be able to run on this system note: to build software for that platform, try `rustup target add i686-pc-windows-gnu` instead note: add the `--force-non-host` flag to install the toolchain anyway ``` Maybe it's really just that easy? Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5b79d7..a0261c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -128,7 +128,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal + - run: rustup install ${env:RUSTUP_TOOLCHAIN} --profile minimal --force-non-host - run: cargo test --target ${env:RUST_TARGET} --manifest-path=${env:MANIFEST} env: CFLAGS: "-Werror -Wundef" From d151cc8f9d6b4b2feb5b9ad7708e3c421ef67807 Mon Sep 17 00:00:00 2001 From: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> Date: Fri, 13 Nov 2026 19:03:07 +0000 Subject: [PATCH 14/14] ci: Disable all permissions by default Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com> --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a65f0ff..59b2bef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,8 @@ on: - "psm-*" - "stacker-*" +permissions: {} + jobs: publish: runs-on: ubuntu-latest