2022-11-06 03:39:53 +01:00
|
|
|
name: Continuous Build FreeBSD
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
tags-ignore:
|
|
|
|
- '*.*'
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- '!src/linux/**'
|
|
|
|
- '!src/osx/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'Makefile'
|
|
|
|
- '.github/workflows/continuous-build-freebsd.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- '!src/linux/**'
|
|
|
|
- '!src/osx/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'Makefile'
|
|
|
|
- '.github/workflows/continuous-build-freebsd.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-freebsd:
|
|
|
|
runs-on: macos-12
|
2023-10-18 22:26:36 +02:00
|
|
|
timeout-minutes: 20
|
2022-11-06 03:39:53 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-23 15:14:32 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2022-11-06 03:39:53 +01:00
|
|
|
- name: Compile
|
|
|
|
uses: vmactions/freebsd-vm@v0
|
|
|
|
with:
|
2023-08-27 02:00:07 +02:00
|
|
|
release: 13.2
|
2022-11-06 04:19:50 +01:00
|
|
|
usesh: true
|
2022-11-06 03:39:53 +01:00
|
|
|
prepare: |
|
|
|
|
pkg install -y gmake gcc11 coreutils git
|
2022-11-06 11:07:27 +01:00
|
|
|
git config --global --add safe.directory /Users/runner/work/btop/btop
|
2022-11-06 03:39:53 +01:00
|
|
|
run: |
|
2023-08-27 02:00:07 +02:00
|
|
|
gmake STATIC=true STRIP=true
|
2022-11-06 04:03:37 +01:00
|
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
|
|
mv bin/btop bin/btop-$GIT_HASH
|
|
|
|
ls -alh bin
|
2023-05-23 15:14:32 +02:00
|
|
|
|
2022-11-06 03:39:53 +01:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-08-27 02:00:07 +02:00
|
|
|
name: btop-x86_64-FreeBSD-13.2
|
2022-11-06 04:03:37 +01:00
|
|
|
path: 'bin/*'
|
2023-08-27 01:36:26 +02:00
|
|
|
if-no-files-found: error
|