forked from anrieff/libcpuid
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.79 KB
/
build_dragonflybsd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build (DragonFly BSD)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
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@v2 # Note: DragonFly BSD was forked from FreeBSD 4.8, and the provision_commands for freebsd-vagrant-action should run fine on DragonFly BSD
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}