File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build (OmniOS)
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ pull_request :
8+ branches :
9+ - ' *'
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ build_omnios :
17+ name : Build on OmniOS
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v5
22+ with :
23+ lfs : true
24+
25+ - name : Build and test on OmniOS
26+ uses : vmactions/omnios-vm@v1
27+ with :
28+ release : r151050
29+ usesh : true
30+ prepare : |
31+ pkg install developer/cmake developer/gcc13 runtime/python-312
32+ run : |
33+ # Generate build system
34+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_ENABLE_TESTS=ON
35+
36+ # Build
37+ cmake --build build
38+
39+ # Run cpuid_tool
40+ ./build/cpuid_tool/cpuid_tool --save=- --all
41+ pfexec ./build/cpuid_tool/cpuid_tool --rdmsr-raw --rdmsr
42+
43+ # Run tests
44+ make -C build consistency
45+ make -C build test-old
46+
47+ # Install
48+ DESTDIR=$PWD/installdir cmake --install build
You can’t perform that action at this time.
0 commit comments