Release version 5.1.1 #966
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux build | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
linux-build: | |
name: Linux x64_64 (Build) | |
runs-on: ${{ matrix.os.label }} | |
strategy: | |
matrix: | |
os: # https://github.com/actions/runner-images/tree/main/images/ubuntu | |
- { label: ubuntu-20.04 } | |
- { label: ubuntu-22.04 } | |
- { label: ubuntu-24.04 } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: abbbi/github-actions-tune@v1 | |
- name: Build libcpuid | |
run: bash -x ./scripts/build_libcpuid.sh "Debug" | |
- name: Build CPU-X | |
run: bash ./scripts/build_cpu_x.sh "Debug" "$GITHUB_WORKSPACE" | |
- name: Run tests | |
run: ninja -C build test | |
- name: Run CPU-X | |
run: | | |
error=0 | |
sudo CPUX_BCLK=100 valgrind cpu-x --issue-fmt || error=1 | |
cat /tmp/cpu-x.log | |
cat /tmp/cpu-x-daemon.log | |
exit $error | |
- name: Test CPU database with LibCPUID tests | |
run: | | |
bash ./scripts/run_libcpuid_tests.sh "/tmp/libcpuid/tests" 2> /dev/null |