Skip to content

Translated using Weblate (Korean) #911

Translated using Weblate (Korean)

Translated using Weblate (Korean) #911

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 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