summaryrefslogtreecommitdiffstats
path: root/.github/workflows/continuous-build.yml
blob: 36bbbbecdedce75b899c7914a9c9ef5a0dc807db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Continuous Build Linux

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
          apt install g++-11-aarch64-linux-gnu -y
      - 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 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 rev-parse --short "$GITHUB_SHA")
          make distclean
      - uses: actions/upload-artifact@v2
        with:
          name: btop
          path: 'multiarch_bin/btop-*'