From b63b472da7b0e441f7a4de82aca5d6460904452f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20P=C5=82aczek?= Date: Tue, 10 Sep 2024 02:12:02 +0100 Subject: [PATCH] ci: fix variable use --- .github/workflows/publish.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dd994eb..8f41061 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,35 +52,32 @@ jobs: run: cargo build --locked --release --target=aarch64-unknown-linux-gnu env: RUSTFLAGS: "-C target-feature=+crt-static" - RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} + RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} # Used by build.rs - name: Static build (ARMv7) run: cargo build --locked --release --target=armv7-unknown-linux-gnueabihf env: RUSTFLAGS: "-C target-feature=+crt-static" - RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} + RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} # Used by build.rs - name: Static deb build (ARM64) run: cargo deb --deb-version $RSPI_BIOS_VERSION --locked --target=aarch64-unknown-linux-gnu env: RUSTFLAGS: "-C target-feature=+crt-static" - RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} + RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} # Used by build.rs - name: Static deb build (ARMv7) run: cargo deb --deb-version $RSPI_BIOS_VERSION --locked --target=armv7-unknown-linux-gnueabihf env: RUSTFLAGS: "-C target-feature=+crt-static" - RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} + RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} # Used by build.rs - name: Rename binaries run: | - cp target/aarch64-unknown-linux-gnu/release/rspi-bios ./rspi-bios_$RSPI_BIOS_VERSION_aarch64-unknown-linux-gnu - cp target/armv7-unknown-linux-gnueabihf/release/rspi-bios ./rspi-bios_$RSPI_BIOS_VERSION_armv7-unknown-linux-gnueabihf - cp target/aarch64-unknown-linux-gnu/debian/rspi-bios_$RSPI_BIOS_VERSION_arm64.deb ./rspi-bios_$RSPI_BIOS_VERSION_arm64.deb - cp target/armv7-unknown-linux-gnueabihf/debian/rspi-bios_$RSPI_BIOS_VERSION_armhf.deb ./rspi-bios_$RSPI_BIOS_VERSION_armhf.deb - env: - RSPI_BIOS_VERSION: ${{ steps.tag-dry.outputs.new_tag }} - + cp target/aarch64-unknown-linux-gnu/release/rspi-bios ./rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_aarch64-unknown-linux-gnu + cp target/armv7-unknown-linux-gnueabihf/release/rspi-bios ./rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_armv7-unknown-linux-gnueabihf + cp target/aarch64-unknown-linux-gnu/debian/rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_arm64.deb ./rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_arm64.deb + cp target/armv7-unknown-linux-gnueabihf/debian/rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_armhf.deb ./rspi-bios_${{ steps.tag-dry.outputs.new_tag }}_armhf.deb - name: Tag (Real run) id: tag-real