Build on a FreeBSD VM #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 |