From 1731cda6db032cd6815af828ef464b1cda83cd64 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Wed, 31 Jul 2024 03:42:27 -0700 Subject: [PATCH] chore: Move binaries to shorter path --- .github/workflows/linutil.yml | 6 +++++- .github/workflows/pre-release.yaml | 7 ++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linutil.yml b/.github/workflows/linutil.yml index a499d680..4adf78e3 100644 --- a/.github/workflows/linutil.yml +++ b/.github/workflows/linutil.yml @@ -39,8 +39,12 @@ jobs: run: cargo build --target-dir=build --release --verbose --target=x86_64-unknown-linux-musl - name: Build aarch64 binary run: cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl + - name: Move binaries to build directory + run: | + mv build/x86_64-unknown-linux-musl/release/linutil build/linutil + mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64 - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Commit Linutil - file_pattern: "build/x86_64-unknown-linux-musl/release/linutil build/aarch64-unknown-linux-musl/release/linutil" + file_pattern: "build/linutil build/linutil-aarch64" if: success() diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 194a43dc..b0651d72 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -21,9 +21,6 @@ jobs: echo "version=$version" >> $GITHUB_ENV shell: bash - - name: Rename aarch64 binary for release - run: mv ./build/aarch64-unknown-linux-musl/release/linutil ./build/aarch64-unknown-linux-musl/release/linutil-aarch64 - - name: Create and Upload Release id: create_release uses: softprops/action-gh-release@v2 @@ -33,8 +30,8 @@ jobs: body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)" append_body: false files: | - ./build/x86_64-unknown-linux-musl/release/linutil - ./build/aarch64-unknown-linux-musl/release/linutil-aarch64 + ./build/linutil + ./build/linutil-aarch64 prerelease: true generate_release_notes: true env: