Skip to content

Build on a FreeBSD VM #28

Build on a FreeBSD VM

Build on a FreeBSD VM #28

Workflow file for this run

# .github/workflows/freebsd.yaml
name: Build on a FreeBSD VM
on:
workflow_dispatch: NULL
jobs:
build:
name: Build and Check on FreeBSD ${{matrix.os}}
strategy:
fail-fast: FALSE
matrix:
os: [ '15.0', '14.3', '14.2', '14.1', '14.0', '13.5', '13.4', '13.3', '13.2' ]
runs-on: ubuntu-latest
defaults:
run: { shell: bash }
steps:
- name: Machine Information
run: |
exec 2>&1
set -x
lscpu; free -h; df -H .
- name: System Information
run: |
exec 2>&1
date; uname -a; uptime
set -x
systemd-detect-virt || :
cat /etc/os-release
ls -C /boot || :
- name: Context Information
run: |
exec 2>&1
tty || :; id; printf %s\\n SHELL="$SHELL" PATH="$PATH"
set -x
pwd
ps -e --sort ppid,pid -o ppid,pid,user:12,group:12,comm:24,rsz:11,vsz:11,thcount,bsdstart,state,tname
- name: Update Package DB
run: |
exec 2>&1
set -x
sudo sed -i /azure/d /etc/apt/apt-mirrors.txt
sudo apt-get update
- name: Checkout
uses: actions/checkout@v4
with: { ref: master }
- name: Build under FreeBSD
uses: vmactions/freebsd-vm@v1
with:
release: ${{matrix.os}}
mem: '8192'
usesh: TRUE
prepare: |
exec 2>&1
set -x
sysctl hw.physmem; df -H .; uname -a
pkg update
pkg install -y gmake
gmake --version; clang --version
run: |
exec 2>&1
tty || :; id; printf %s\\n SHELL="$SHELL" PATH="$PATH"
set -x
pwd
gmake -j4 run GCC=clang GXX=clang++
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: build${{matrix.os}}
path: build