Provide FreeBSD static release binaries

Bumps vmaction@freesdb-vm to version 1 which runs on Linux and doesn't
hang all the time. Also uses clang for full static compilation
This commit is contained in:
Steffen Winter 2023-11-30 23:07:52 +01:00
parent ebc46ca12c
commit 00f58b6228
No known key found for this signature in database
GPG key ID: D4053C3600EF3B1F

View file

@ -27,29 +27,49 @@ on:
jobs: jobs:
build-freebsd: build-freebsd:
runs-on: macos-12 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
strategy:
matrix:
compiler: ["clang++", "g++"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: Compile - name: Compile
uses: vmactions/freebsd-vm@v0 uses: vmactions/freebsd-vm@v1
with: with:
release: 13.2 release: '14.0'
usesh: true usesh: true
prepare: | prepare: |
pkg install -y gmake gcc11 coreutils git pkg install -y gmake gcc coreutils git
git config --global --add safe.directory /Users/runner/work/btop/btop git config --global --add safe.directory /home/runner/work/btop/btop
run: | run: |
gmake STATIC=true STRIP=true CXX=${{ matrix.compiler }} gmake STATIC=true STRIP=true
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") 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 ls -alh bin
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: btop-x86_64-FreeBSD-13.2 name: btop-x86_64-freebsd-14
path: 'bin/*' path: 'bin/*'
if-no-files-found: error if-no-files-found: error
build-freebsd-cmake:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Compile
uses: vmactions/freebsd-vm@v1
with:
release: '14.0'
usesh: true
prepare: pkg install -y cmake git ninja
run: |
CXX=clang++ cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBTOP_STATIC=ON
cmake --build build