From 36ef8408ea23f3b7b5162bd1fb479f528a1d50f0 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Tue, 17 Sep 2024 11:00:55 +0200 Subject: [PATCH] ci: fix asset publishing in release check workflow (#488) --- .github/workflows/release-check.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml index b274983e..81606ee3 100644 --- a/.github/workflows/release-check.yml +++ b/.github/workflows/release-check.yml @@ -36,15 +36,14 @@ jobs: - uses: ./.github/actions/configure-environment - if: runner.os == 'macOS' run: | - cd rust && rustup target add x86_64-apple-darwin - cd rust && cargo fetch + rustup target add x86_64-apple-darwin + cargo fetch + working-directory: rust - if: runner.os == 'Linux' name: Build and publish the standard release env: GITHUB_TOKEN: ${{ github.token }} run: | - cd rust - REPOSITORY_NAME=${GITHUB_REPOSITORY##*/} TARBALL_PATH="/tmp/${REPOSITORY_NAME}-$(uname)-$(uname -m)-standard.tar.gz" @@ -54,11 +53,10 @@ jobs: ./scripts/build-release.sh build --verbose --no-default-features --features multicore-sdr,opencl,blst-portable ./scripts/package-release.sh $TARBALL_PATH ./scripts/publish-release.sh $TARBALL_PATH $RELEASE_NAME + working-directory: rust - if: runner.os == 'Linux' name: Build the optimized release run: | - cd rust - REPOSITORY_NAME=${GITHUB_REPOSITORY##*/} TARBALL_PATH="/tmp/${REPOSITORY_NAME}-$(uname)-$(uname -m)-optimized.tar.gz" @@ -66,13 +64,12 @@ jobs: ./scripts/build-release.sh build --verbose --no-default-features --features multicore-sdr,opencl ./scripts/package-release.sh $TARBALL_PATH + working-directory: rust - if: runner.os == 'macOS' name: Build and publish the universal standard release env: GITHUB_TOKEN: ${{ github.token }} run: | - cd rust - REPOSITORY_NAME=${GITHUB_REPOSITORY##*/} RELEASE_NAME="${REPOSITORY_NAME}-$(uname)-standard" @@ -82,3 +79,4 @@ jobs: ./scripts/build-release.sh lipo --verbose --no-default-features --features multicore-sdr,opencl,blst-portable ./scripts/package-release.sh $TARBALL_PATH ./scripts/publish-release.sh $TARBALL_PATH $RELEASE_NAME + working-directory: rust