1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-20 23:01:51 +00:00
libcpuid/.github/workflows/build_linux.yml
The Tumultuous Unicorn Of Darkness fae9ec6b72
CI: update Linux+FreeBSD jobs
2024-07-31 16:39:42 +02:00

44 lines
917 B
YAML

name: Build (Linux)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build_linux:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
steps:
- uses: actions/checkout@v4
- 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