btop/.github/workflows/continuous-build.yml
2021-10-05 16:26:22 +05:30

28 lines
588 B
YAML

name: Continuous Build
on:
push
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:21.04
steps:
- uses: actions/checkout@v2
- name: Install build tools
run: |
apt update && \
apt install coreutils sed git build-essential gcc-11 g++-11 -y
- name: Compile
run: |
make STATIC=true
git init
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
mv bin/btop bin/btop-$GIT_HASH
- uses: actions/upload-artifact@v2
with:
name: Btop
path: 'bin/btop-*'