Files
opu/.github/workflows/ci.yml
T
yann64andClaude Opus 5.5 82f968dbec
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
docs: README entièrement en anglais ; ci: actions/checkout@v5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 19:56:44 +01:00

68 lines
2.0 KiB
YAML

# SPDX-License-Identifier: MIT
# Build and test on Linux x86_64 and arm64 (native GitHub runners) for every push and pull request.
name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
permissions:
contents: read
jobs:
linux:
name: Linux ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubuntu-24.04
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # tags are needed for the version description
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential cmake ninja-build pkg-config gettext \
libcurl4-openssl-dev libarchive-dev nlohmann-json3-dev doctest-dev \
libglib2.0-dev libgtkmm-4.0-dev
- name: Configure
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENPU_WERROR=ON -DOPENPU_UI_GTK=ON
- name: Build
run: cmake --build build
- name: Unit tests
run: ctest --test-dir build --output-on-failure
- name: Smoke test
run: |
build/src/cli/openpu-cli --version
test -f build/locale/fr/LC_MESSAGES/openpu.mo
sanitizers:
name: ASan + UBSan
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake ninja-build pkg-config \
libcurl4-openssl-dev libarchive-dev nlohmann-json3-dev doctest-dev libglib2.0-dev
- name: Build and test
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DOPENPU_SANITIZE=ON
cmake --build build
UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 ctest --test-dir build --output-on-failure