ci: GitHub Actions sur Linux x86_64 et arm64
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run

- compilation (cœur, CLI, GTK, traductions) et tests unitaires sur les
  runners ubuntu-24.04 et ubuntu-24.04-arm, avec -Werror
- tâche ASan + UBSan
- feuille de route : AppImage, puis binaires x86_64 + arm64 dans chaque
  release à partir de 1.0.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
yann64andClaude Opus 5.5 committed 2026-11-28 19:55:02 +01:00
1 parent 384aaf78c6
commit 2ce6ddde46
3 files changed
+71

No files matched your search

+67
View File
@@ -0,0 +1,67 @@
# 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@v4
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@v4
- 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