2021-10-05 13:13:31 +02:00
|
|
|
name: Continuous Build Linux
|
2021-10-17 12:11:25 +02:00
|
|
|
|
2021-10-05 10:42:36 +02:00
|
|
|
on:
|
2021-10-17 17:51:23 +02:00
|
|
|
workflow_dispatch:
|
2021-10-05 20:57:33 +02:00
|
|
|
push:
|
2021-10-06 17:25:22 +02:00
|
|
|
branches:
|
2021-10-17 17:51:23 +02:00
|
|
|
- main
|
2021-10-06 17:25:22 +02:00
|
|
|
tags-ignore:
|
|
|
|
- '*.*'
|
2021-10-05 20:55:15 +02:00
|
|
|
paths:
|
|
|
|
- 'src/**'
|
2021-10-06 08:19:33 +02:00
|
|
|
- '!src/osx/**'
|
|
|
|
- '!src/freebsd/**'
|
2024-01-02 16:05:12 +01:00
|
|
|
- '!src/openbsd/**'
|
2021-10-05 20:55:15 +02:00
|
|
|
- 'include/**'
|
|
|
|
- 'Makefile'
|
2023-07-23 19:53:36 +02:00
|
|
|
- '.github/workflows/continuous-build-linux.yml'
|
2022-11-06 03:04:47 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- '!src/osx/**'
|
|
|
|
- '!src/freebsd/**'
|
2024-01-02 16:05:12 +01:00
|
|
|
- '!src/openbsd/**'
|
2022-11-06 03:04:47 +01:00
|
|
|
- 'include/**'
|
|
|
|
- 'Makefile'
|
2023-07-23 19:53:36 +02:00
|
|
|
- '.github/workflows/continuous-build-linux.yml'
|
2021-10-05 10:42:36 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-10-16 13:03:09 +02:00
|
|
|
static-build:
|
|
|
|
continue-on-error: true
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- aarch64-linux-musl
|
|
|
|
- aarch64_be-linux-musl
|
|
|
|
- arm-linux-musleabi
|
|
|
|
- arm-linux-musleabihf
|
|
|
|
- armeb-linux-musleabi
|
|
|
|
- armeb-linux-musleabihf
|
|
|
|
- armel-linux-musleabi
|
|
|
|
- armel-linux-musleabihf
|
|
|
|
- armv5l-linux-musleabi
|
|
|
|
- armv5l-linux-musleabihf
|
|
|
|
- armv6-linux-musleabi
|
|
|
|
- armv6-linux-musleabihf
|
|
|
|
- armv7l-linux-musleabihf
|
|
|
|
- armv7m-linux-musleabi
|
|
|
|
- armv7r-linux-musleabihf
|
|
|
|
- i486-linux-musl
|
|
|
|
- i686-linux-musl
|
|
|
|
- m68k-linux-musl
|
|
|
|
- mips-linux-musl
|
|
|
|
- mips-linux-musln32sf
|
|
|
|
- mips-linux-muslsf
|
|
|
|
- mips64-linux-musl
|
|
|
|
- mips64-linux-musln32
|
|
|
|
- mips64-linux-musln32sf
|
|
|
|
- mips64el-linux-musl
|
|
|
|
- mips64el-linux-musln32
|
|
|
|
- mips64el-linux-musln32sf
|
|
|
|
- mipsel-linux-musl
|
|
|
|
- mipsel-linux-musln32
|
|
|
|
- mipsel-linux-musln32sf
|
|
|
|
- mipsel-linux-muslsf
|
|
|
|
- powerpc-linux-musl
|
|
|
|
- powerpc-linux-muslsf
|
|
|
|
- powerpc64-linux-musl
|
|
|
|
- powerpc64le-linux-musl
|
|
|
|
- powerpcle-linux-musl
|
|
|
|
- powerpcle-linux-muslsf
|
|
|
|
- riscv32-linux-musl
|
|
|
|
- riscv64-linux-musl
|
|
|
|
- s390x-linux-musl
|
|
|
|
- x86_64-linux-musl
|
|
|
|
- x86_64-linux-muslx32
|
2021-10-05 10:42:36 +02:00
|
|
|
|
2021-11-27 17:59:46 +01:00
|
|
|
# - or1k-linux-musl
|
|
|
|
# - sh2-linux-musl
|
|
|
|
# - sh2-linux-muslfdpic
|
|
|
|
# - sh2eb-linux-musl
|
|
|
|
# - sh2eb-linux-muslfdpic
|
|
|
|
# - sh4-linux-musl
|
|
|
|
# - sh4eb-linux-musl
|
|
|
|
|
2021-10-05 12:33:41 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-16 13:03:09 +02:00
|
|
|
container: muslcc/x86_64:${{ matrix.toolchain }}
|
2021-10-05 10:42:36 +02:00
|
|
|
|
|
|
|
steps:
|
2021-10-05 12:53:22 +02:00
|
|
|
- name: Install build tools
|
2021-10-16 13:03:09 +02:00
|
|
|
run: apk add --no-cache coreutils git make tar zstd
|
2021-10-05 15:56:15 +02:00
|
|
|
|
2022-04-13 11:42:04 +02:00
|
|
|
- name: Fix - Unsafe repository stop
|
|
|
|
run: git config --global --add safe.directory /__w/btop/btop
|
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Checkout source
|
2022-10-23 19:39:41 +02:00
|
|
|
uses: actions/checkout@v3
|
2023-05-23 15:14:32 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-10-17 12:11:25 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Fix - Stopping at filesystem boundary
|
|
|
|
run: git init # [fix Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).]
|
2021-10-05 15:24:51 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Build
|
2021-11-27 17:59:46 +01:00
|
|
|
run: make STATIC=true STRIP=true
|
2021-10-05 15:24:51 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Make executable
|
|
|
|
run: chmod +x bin/*
|
2021-10-05 15:24:51 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Set up directories
|
2021-10-05 15:24:51 +02:00
|
|
|
run: |
|
2021-10-16 13:03:09 +02:00
|
|
|
mkdir .artifacts
|
|
|
|
mkdir .package
|
2021-10-05 15:24:51 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Create binary atrifacts
|
2021-10-05 20:20:47 +02:00
|
|
|
run: |
|
2021-10-16 13:03:09 +02:00
|
|
|
TOOLCHAIN=${{ matrix.toolchain }}
|
|
|
|
GIT_HASH=$(git rev-parse --short "${{ github.sha }}")
|
|
|
|
FILENAME=btop-${TOOLCHAIN/linux-musl/}-$GIT_HASH
|
|
|
|
cp bin/btop .artifacts/$FILENAME
|
2021-10-05 20:20:47 +02:00
|
|
|
|
2021-10-16 13:03:09 +02:00
|
|
|
- name: Upload artifacts
|
2022-10-23 19:39:41 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-10-05 10:42:36 +02:00
|
|
|
with:
|
2021-10-16 13:03:09 +02:00
|
|
|
name: btop-${{ matrix.toolchain }}
|
|
|
|
path: '.artifacts/**'
|