Skip to content

Build on a FreeBSD VM #16

Build on a FreeBSD VM

Build on a FreeBSD VM #16

Workflow file for this run

# .github/workflows/cross.yaml
name: Build on a FreeBSD VM
on:
workflow_dispatch:
push:
branches: [ "test" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Machine Information
run: |
lscpu; free -h; df -h .
- name: System Information
run: |
date; uname -a; uptime; cat /etc/os-release; ls -C /boot || :
- name: Context Information
run: |
tty || :; id; printf %s\\n "$SHELL"; printf %s\\n "$PATH"; pwd
- name: Checkout
uses: actions/checkout@v4
- name: Build under FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
set -x
sysctl hw.physmem; df -h .
date; uname -a; freebsd-version
pkg install -y gmake
gmake --version
clang++ --version
id
run: |
set -x
tty || :; id; printf %s\\n "$SHELL"; printf %s\\n "$PATH"; pwd
gmake -j3 run GCC=clang GXX=clang++ CFLAGS='-Wno-psabi -O3 -fno-stack-protector -fcf-protection=none' MARCH=
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: build
path: build