Files
VLMCSD/.gitea/workflows/release.yml
T
Cantibra a58ba0344e
VLMCSD / VLMCSD (amd64, x86_64-linux-gnu-gcc-12, bookworm trixie noble, main) (push) Successful in 13s
VLMCSD / VLMCSD (arm64, aarch64-linux-gnu-gcc-12, bookworm trixie noble, main) (push) Successful in 14s
1
2026-05-26 15:04:50 +02:00

77 lines
4.7 KiB
YAML

name: VLMCSD
on:
push:
branches:
- release
jobs:
workflow:
name: VLMCSD
strategy:
matrix:
include:
- architecture: amd64
codename: bookworm trixie noble
component: main
cc: x86_64-linux-gnu-gcc-12
- architecture: arm64
codename: bookworm trixie noble
component: main
cc: aarch64-linux-gnu-gcc-12
runs-on: cicd.bookworm
steps:
- name: Repository (Workspace) [Checkout]
uses: actions/checkout@v6
- name: Environment [Source]
id: environment
run: |
source './.env'
UNITS=$(/usr/bin/nproc --all)
/usr/bin/echo "UNITS=${UNITS}" >> "${GITHUB_OUTPUT}"
/usr/bin/echo "Set Variable 'UNITS' to '${UNITS}'"
/usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
- name: VLMCSD [Build]
run: |
/usr/bin/make --directory='./sources' --jobs='${{ steps.environment.outputs.units }}' CC='${{ matrix.cc }}' VLMCSD_VERSION='${{ steps.environment.outputs.version }}'
- name: VLMCSD [Prepare Debian Package]
run: |
/usr/bin/sed --in-place --expression='s/Architecture:.*/Architecture: ${{ matrix.architecture }}/' './vlmcsd/DEBIAN/control'
/usr/bin/sed --in-place --expression='s/Version:.*/Version: ${{ steps.environment.outputs.version }}/' './vlmcsd/DEBIAN/control'
/usr/bin/chmod --verbose '0755' './vlmcsd/DEBIAN/postinst'
/usr/bin/chmod --verbose '0755' './vlmcsd/DEBIAN/postrm'
/usr/bin/chmod --verbose '0755' './vlmcsd/DEBIAN/preinst'
/usr/bin/chmod --verbose '0755' './vlmcsd/DEBIAN/prerm'
/usr/bin/chmod --verbose '0755' './vlmcsd/etc/init.d/vlmcsd'
/usr/bin/install --directory --verbose './vlmcsd/usr/sbin'
/usr/bin/install --directory --verbose './vlmcsd/usr/share/man/man'{1,5,7,8}
/usr/bin/mv --verbose './sources/bin/vlmcsd' './vlmcsd/usr/sbin/vlmcsd'
/usr/bin/mv --verbose './sources/man/vlmcsd.ini.5' './vlmcsd/usr/share/man/man5/vlmcsd.ini.5'
/usr/bin/mv --verbose './sources/man/vlmcsd.7' './vlmcsd/usr/share/man/man7/vlmcsd.7'
/usr/bin/mv --verbose './sources/man/vlmcsd.8' './vlmcsd/usr/share/man/man8/vlmcsd.8'
/usr/bin/gzip --best --verbose './vlmcsd/usr/share/man/man5/vlmcsd.ini.5'
/usr/bin/gzip --best --verbose './vlmcsd/usr/share/man/man7/vlmcsd.7'
/usr/bin/gzip --best --verbose './vlmcsd/usr/share/man/man8/vlmcsd.8'
- name: Debian Package [Generate]
run: |
/usr/bin/dpkg-gen './vlmcsd'
/usr/bin/mv --verbose './vlmcsd.deb' './vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb'
- name: Release Debian Package [Configuration]
run: |
/usr/bin/echo '${{ secrets.REPOSITORY_SSH_PRIVATE_KEY }}' > './id_ed25519'
/usr/bin/chmod --quiet '0400' './id_ed25519'
/usr/bin/echo "REPOSITORY_CODENAME='${{ matrix.codename }}'" > './vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${{ matrix.codename }}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${{ matrix.component }}'" >> './vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'
/usr/bin/echo "Set Configuration 'REPOSITORY_COMPONENT' to '${{ matrix.component }}'"
- name: Release Debian Package [PrivLab Repository]
uses: https://gitea.com/actions/gitea-release-action@v1
with:
name: VLMCSD v${{ steps.environment.outputs.version }}
tag_name: v${{ steps.environment.outputs.version }}
files: |
vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb
- name: Release Debian Package [Advanced Package Tool Repository]
run: |
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" './vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb'
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" './vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/vlmcsd_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'