39 lines
989 B
YAML
39 lines
989 B
YAML
# SPDX-FileCopyrightText: 2026 Christian Tosta
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# @file .github/workflows/targets/debian.yml
|
|
# @brief Simplified Debian build target using workflow preset
|
|
|
|
name: Debian Build Target
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
containers:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build-deb:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
container: ${{ fromJson(inputs.containers) }}
|
|
container:
|
|
image: ${{ matrix.container }}
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Dependencies
|
|
run: apt-get update && apt-get install -y cmake build-essential git dpkg-dev fakeroot
|
|
|
|
- name: Run CMake Workflow
|
|
run: cmake --workflow --preset deb-workflow
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pyenv-deb-${{ matrix.container }}
|
|
path: build/deb/*.deb
|