Rename binary to git hash

This commit is contained in:
Shriraj Hegde 2021-10-05 16:23:22 +05:30
parent 72ed836144
commit 28ab3d9c1a

View file

@ -11,14 +11,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install g++, make - name: Install build tools
run: | run: |
apt update && \ apt update && \
apt install coreutils sed git build-essential gcc-11 g++-11 -y apt install coreutils sed git build-essential gcc-11 g++-11 -y
- name: Build - name: Compile
run: make run: |
make STATIC=true
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
mv bin/btop bin/btop-$GIT_HASH
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: Upload built binary name: Btop
path: 'bin/btop' path: 'bin/btop-*'