mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
CI: add a build job for DragonFly BSD
This commit is contained in:
parent
fae9ec6b72
commit
f438aa3b40
2 changed files with 52 additions and 1 deletions
51
.github/workflows/build_dragonflybsd.yml
vendored
Normal file
51
.github/workflows/build_dragonflybsd.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
name: Build (DragonFly BSD)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build_dragonflybsd:
|
||||
name: Build on ${{ matrix.box }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
box:
|
||||
- generic/dragonflybsd6
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Provision VM
|
||||
uses: hummeltech/freebsd-vagrant-action@v1.4
|
||||
with:
|
||||
box: ${{ matrix.box }}
|
||||
save_box_to_cache: true
|
||||
|
||||
- name: Install packages
|
||||
run: sudo pkg install --yes cmake python3
|
||||
|
||||
- name: Generate build system
|
||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_ENABLE_TESTS=ON
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build
|
||||
|
||||
- name: Run cpuid_tool
|
||||
run: |
|
||||
./build/cpuid_tool/cpuid_tool --save=- --all
|
||||
sudo ./build/cpuid_tool/cpuid_tool --rdmsr-raw --rdmsr
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
make -C build consistency
|
||||
make -C build test-old
|
||||
|
||||
- name: Install
|
||||
run: cmake --install build
|
||||
env:
|
||||
DESTDIR: ${{ github.workspace }}/installdir
|
|
@ -22,7 +22,7 @@ libcpuid support varies depending on the features:
|
|||
|
||||
|Name|Build|x86 MSR|ARM CPUID|
|
||||
|----|----|-------|---------|
|
||||
|DragonFly BSD|:heavy_check_mark: |:grey_question: ([`cpuctl` kernel module](https://man.freebsd.org/cgi/man.cgi?query=cpuctl))|:x:|
|
||||
|DragonFly BSD|:heavy_check_mark: ![DragonFly BSD workflow status](https://github.com/anrieff/libcpuid/actions/workflows/build_dragonflybsd.yml/badge.svg)|:grey_question: ([`cpuctl` kernel module](https://man.freebsd.org/cgi/man.cgi?query=cpuctl))|:x:|
|
||||
|FreeBSD|:heavy_check_mark: ![FreeBSD workflow status](https://github.com/anrieff/libcpuid/actions/workflows/build_freebsd.yml/badge.svg)|:heavy_check_mark: ([`cpuctl` kernel module](https://man.freebsd.org/cgi/man.cgi?query=cpuctl))|:heavy_check_mark:¹ ([`cpuid` out-of-tree kernel module](https://github.com/anrieff/libcpuid/tree/master/drivers/arm/freebsd))|
|
||||
|Linux|:heavy_check_mark: ![Linux workflow status](https://github.com/anrieff/libcpuid/actions/workflows/build_linux.yml/badge.svg)|:heavy_check_mark: ([`msr` kernel module](https://man7.org/linux/man-pages/man4/msr.4.html))|:heavy_check_mark:¹ ([`cpuid` out-of-tree kernel module](https://github.com/anrieff/libcpuid/tree/master/drivers/arm/linux))|
|
||||
|macOS|:heavy_check_mark: ![macOS workflow status](https://github.com/anrieff/libcpuid/actions/workflows/build_macos.yml/badge.svg)|:x:|:x:|
|
||||
|
|
Loading…
Reference in a new issue