mirror of
https://github.com/aristocratos/btop.git
synced 2024-10-31 21:01:03 +01:00
ff1f51ccbb
Recently the FreeBSD workflow has started to hang in a boot loop when the VM starts up. The issue is being tracked upstream but there is not response at the moment. To work around this set a timeout to not waste CI minutes. Other workflows might also want this change since they don't take 20 minutes anyway.
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
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
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Compile
|
|
uses: vmactions/freebsd-vm@v0
|
|
with:
|
|
release: 13.2
|
|
usesh: true
|
|
prepare: |
|
|
pkg install -y gmake gcc11 coreutils git
|
|
git config --global --add safe.directory /Users/runner/work/btop/btop
|
|
run: |
|
|
gmake STATIC=true STRIP=true
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
mv bin/btop bin/btop-$GIT_HASH
|
|
ls -alh bin
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: btop-x86_64-FreeBSD-13.2
|
|
path: 'bin/*'
|
|
if-no-files-found: error
|