diff options
author | Shriraj Hegde <shriraj.hegde@gmail.com> | 2021-10-05 18:31:53 +0530 |
---|---|---|
committer | Shriraj Hegde <shriraj.hegde@gmail.com> | 2021-10-05 18:31:53 +0530 |
commit | 8952694b04461d7f5219f910f4b3bfd33847ddf4 (patch) | |
tree | b0cbb5d4ae72d1472fb9cb9e6b9c64e3c900c5d4 /.github | |
parent | 2e058b171a1f396e31c33da1a7b1e634522f1702 (diff) |
Fix git hash in binary name
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/continuous-build.yml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build.yml index e4ef344..36bbbbe 100644 --- a/.github/workflows/continuous-build.yml +++ b/.github/workflows/continuous-build.yml @@ -16,20 +16,15 @@ jobs: apt update && \ apt install coreutils sed git build-essential gcc-11 g++-11 -y apt install g++-11-aarch64-linux-gnu -y - - name: Resolve git hash - run: | - git init - GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") - mkdir multiarch_bin - name: Compile x86_64 run: | make CXX=g++-11 ARCH=x86_64 STATIC=true QUIET=true - mv bin/btop multiarch_bin/btop-x86_64-$GIT_HASH + mv bin/btop multiarch_bin/btop-x86_64-$(git rev-parse --short "$GITHUB_SHA") make distclean - name: Compile aarch64 run: | make CXX=aarch64-linux-gnu-g++-11 ARCH=aarch64 STATIC=true QUIET=true - mv bin/btop multiarch_bin/btop-aarch64-$GIT_HASH + mv bin/btop multiarch_bin/btop-aarch64-$(git rev-parse --short "$GITHUB_SHA") make distclean - uses: actions/upload-artifact@v2 with: |