fix: smoke test artifact download paths

upload-artifact@v4 uses least common ancestor, so files from
target/<target>/release/ are stored without that prefix. Download
to bin/ directory and reference binaries there.
This commit is contained in:
Marco Allegretti 2026-02-22 21:15:47 +01:00
parent a05bb30e9c
commit c2c617b5f9

View file

@ -254,20 +254,19 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
artifact: karapace-linux-x86_64-gnu
binary_path: target/x86_64-unknown-linux-gnu/release
- target: x86_64-unknown-linux-musl
artifact: karapace-linux-x86_64-musl
binary_path: target/x86_64-unknown-linux-musl/release
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact }}
path: bin
- name: Verify binary
run: |
chmod +x ${{ matrix.binary_path }}/karapace
${{ matrix.binary_path }}/karapace --version
${{ matrix.binary_path }}/karapace doctor
${{ matrix.binary_path }}/karapace migrate
chmod +x bin/karapace
bin/karapace --version
bin/karapace doctor
bin/karapace migrate
reproducibility-check:
name: Reproducibility Check (same-run)