2021-10-05 13:13:31 +02:00
|
|
|
name: Continuous Build Linux
|
2021-10-05 10:42:36 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2021-10-05 12:33:41 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ubuntu:21.04
|
2021-10-05 10:42:36 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-05 12:53:22 +02:00
|
|
|
- name: Install build tools
|
2021-10-05 10:42:36 +02:00
|
|
|
run: |
|
2021-10-05 12:33:41 +02:00
|
|
|
apt update && \
|
|
|
|
apt install coreutils sed git build-essential gcc-11 g++-11 -y
|
2021-10-05 14:16:08 +02:00
|
|
|
apt install g++-11-aarch64-linux-gnu -y
|
|
|
|
- name: Compile x86_64
|
|
|
|
run: |
|
|
|
|
make CXX=g++-11 ARCH=x86_64 STATIC=true QUIET=true
|
2021-10-05 15:01:53 +02:00
|
|
|
mv bin/btop multiarch_bin/btop-x86_64-$(git rev-parse --short "$GITHUB_SHA")
|
2021-10-05 14:53:12 +02:00
|
|
|
make distclean
|
2021-10-05 14:16:08 +02:00
|
|
|
- name: Compile aarch64
|
|
|
|
run: |
|
|
|
|
make CXX=aarch64-linux-gnu-g++-11 ARCH=aarch64 STATIC=true QUIET=true
|
2021-10-05 15:01:53 +02:00
|
|
|
mv bin/btop multiarch_bin/btop-aarch64-$(git rev-parse --short "$GITHUB_SHA")
|
2021-10-05 14:53:12 +02:00
|
|
|
make distclean
|
2021-10-05 10:42:36 +02:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-10-05 13:13:31 +02:00
|
|
|
name: btop
|
2021-10-05 14:55:57 +02:00
|
|
|
path: 'multiarch_bin/btop-*'
|