Translated using Weblate (Esperanto) #994
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 ${{ matrix.os.arch }} (Build) | |
runs-on: ${{ matrix.os.label }} | |
strategy: | |
matrix: | |
os: | |
# x86_64 (https://github.com/actions/runner-images/tree/main/images/ubuntu) | |
- { arch: x86_64, label: ubuntu-22.04 } | |
- { arch: x86_64, label: ubuntu-24.04 } | |
# ARM64 (https://github.com/actions/partner-runner-images) | |
- { arch: aarch64, label: ubuntu-22.04-arm } | |
- { arch: aarch64, label: ubuntu-24.04-arm } | |
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 |