2021-10-06 00:13:31 +13:00
|
|
|
name: Continuous Build Linux
|
2021-10-05 21:42:36 +13:00
|
|
|
|
|
|
|
on:
|
|
|
|
push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2021-10-05 23:33:41 +13:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ubuntu:21.04
|
2021-10-05 21:42:36 +13:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-05 23:53:22 +13:00
|
|
|
- name: Install build tools
|
2021-10-05 21:42:36 +13:00
|
|
|
run: |
|
2021-10-05 23:33:41 +13:00
|
|
|
apt update && \
|
|
|
|
apt install coreutils sed git build-essential gcc-11 g++-11 -y
|
2021-10-05 23:53:22 +13:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
make STATIC=true
|
2021-10-05 23:56:22 +13:00
|
|
|
git init
|
2021-10-05 23:53:22 +13:00
|
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
|
|
mv bin/btop bin/btop-$GIT_HASH
|
2021-10-05 23:33:41 +13:00
|
|
|
|
2021-10-05 21:42:36 +13:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-10-06 00:13:31 +13:00
|
|
|
name: btop
|
2021-10-05 23:53:22 +13:00
|
|
|
path: 'bin/btop-*'
|