summaryrefslogtreecommitdiffstats
path: root/.github/workflows/continuous-build-freebsd.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/continuous-build-freebsd.yml')
-rw-r--r--.github/workflows/continuous-build-freebsd.yml26
1 files changed, 17 insertions, 9 deletions
diff --git a/.github/workflows/continuous-build-freebsd.yml b/.github/workflows/continuous-build-freebsd.yml
index 5caa6d1..d06190f 100644
--- a/.github/workflows/continuous-build-freebsd.yml
+++ b/.github/workflows/continuous-build-freebsd.yml
@@ -11,6 +11,7 @@ on:
- 'src/**'
- '!src/linux/**'
- '!src/osx/**'
+ - '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-freebsd.yml'
@@ -21,34 +22,41 @@ on:
- 'src/**'
- '!src/linux/**'
- '!src/osx/**'
+ - '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-freebsd.yml'
jobs:
build-freebsd:
- runs-on: macos-12
+ runs-on: ubuntu-22.04
+ timeout-minutes: 20
+ strategy:
+ matrix:
+ compiler: ["clang++", "g++"]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
- uses: vmactions/freebsd-vm@v0
+ uses: vmactions/freebsd-vm@v1
with:
- release: 13.2
+ release: '14.0'
usesh: true
prepare: |
- pkg install -y gmake gcc11 coreutils git
- git config --global --add safe.directory /Users/runner/work/btop/btop
+ pkg install -y gmake gcc coreutils git
+ git config --global --add safe.directory /home/runner/work/btop/btop
run: |
- gmake STATIC=true STRIP=true
+ CXX=${{ matrix.compiler }} gmake STATIC=true STRIP=true
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
- mv bin/btop bin/btop-$GIT_HASH
+ COMPILER=$(echo ${{ matrix.compiler }} | sed 's/clang++/llvm/' | sed 's/g++/gcc/')
+ mv bin/btop bin/btop-"$COMPILER"-"$GIT_HASH"
ls -alh bin
- uses: actions/upload-artifact@v3
with:
- name: btop-x86_64-FreeBSD-13.2
+ name: btop-x86_64-freebsd-14
path: 'bin/*'
if-no-files-found: error
+