1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00
libcpuid/.github/workflows/build_freebsd.yml
The Tumultuous Unicorn Of Darkness cec3e8cacc
CI: set run shell for *BSD
/usr/local/bin/bash is a wrapper around 'vagrant ssh' using Bash
2024-08-03 12:25:27 +02:00

58 lines
1.5 KiB
YAML

name: Build (FreeBSD)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build_freebsd:
name: Build on ${{ matrix.box }}
runs-on: ubuntu-latest
strategy:
matrix:
box:
- generic/freebsd13
- generic/freebsd14
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Provision VM
uses: hummeltech/freebsd-vagrant-action@v2
with:
box: ${{ matrix.box }}
save_box_to_cache: true
- name: Install packages
run: sudo pkg install --yes cmake python3
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}
- name: Generate build system
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_ENABLE_TESTS=ON
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}
- name: Build
run: cmake --build build
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}
- name: Run cpuid_tool
run: |
./build/cpuid_tool/cpuid_tool --save=- --all
sudo ./build/cpuid_tool/cpuid_tool --rdmsr-raw --rdmsr
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}
- name: Run tests
run: |
make -C build consistency
make -C build test-old
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}
- name: Install
run: cmake --install build
env:
DESTDIR: ${{ github.workspace }}/installdir
shell: /usr/local/bin/bash --noprofile --norc -euo pipefail {0}