btop/.github/workflows/continuous-build-linux.yml

128 lines
3.3 KiB
YAML
Raw Normal View History

2021-10-05 13:13:31 +02:00
name: Continuous Build Linux
2021-10-05 10:42:36 +02:00
on:
workflow_dispatch:
2021-10-05 20:57:33 +02:00
push:
2021-10-06 17:25:22 +02:00
branches:
- main
2021-10-06 17:25:22 +02:00
tags-ignore:
- '*.*'
paths:
- 'src/**'
2021-10-06 08:19:33 +02:00
- '!src/osx/**'
- '!src/freebsd/**'
2024-01-02 16:05:12 +01:00
- '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-linux.yml'
pull_request:
branches:
- main
paths:
- 'src/**'
- '!src/osx/**'
- '!src/freebsd/**'
2024-01-02 16:05:12 +01:00
- '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-linux.yml'
2021-10-05 10:42:36 +02:00
jobs:
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
# - 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
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
run: apk add --no-cache coreutils git make tar zstd
- name: Fix - Unsafe repository stop
run: git config --global --add safe.directory /__w/btop/btop
- name: Checkout source
2022-10-23 19:39:41 +02:00
uses: actions/checkout@v3
with:
submodules: recursive
- name: Fix - Stopping at filesystem boundary
run: git init # [fix Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).]
- name: Build
run: make STATIC=true STRIP=true
- name: Make executable
run: chmod +x bin/*
- name: Set up directories
run: |
mkdir .artifacts
mkdir .package
- name: Create binary atrifacts
run: |
TOOLCHAIN=${{ matrix.toolchain }}
GIT_HASH=$(git rev-parse --short "${{ github.sha }}")
FILENAME=btop-${TOOLCHAIN/linux-musl/}-$GIT_HASH
cp bin/btop .artifacts/$FILENAME
- 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:
name: btop-${{ matrix.toolchain }}
path: '.artifacts/**'