Skip to content

Translated using Weblate (Greek) #870

Translated using Weblate (Greek)

Translated using Weblate (Greek) #870

Workflow file for this run

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/virtual-environments/tree/main/images/linux
- { label: ubuntu-20.04 }
- { label: ubuntu-22.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_ubuntu.sh "Debug" "$GITHUB_WORKSPACE"
- name: Run tests
run: ninja -C build test
- name: Run CPU-X
run: |
error=0
sudo CPUX_BCLK=100 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