mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-17 01:45:34 +12:00
Fix git hash in binary name
This commit is contained in:
parent
2e058b171a
commit
8952694b04
9
.github/workflows/continuous-build.yml
vendored
9
.github/workflows/continuous-build.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue