Skip to content

qemu storage commit/rollback #951

qemu storage commit/rollback

qemu storage commit/rollback #951

Workflow file for this run

# ---------------------------------------------------------------------------
# CI workflows for MTDA
# ---------------------------------------------------------------------------
#
# This software is a part of MTDA.
# Copyright (C) 2025 Siemens AG
#
# ---------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------
name: CI
on:
push:
branches:
- master
tags:
- v*
pull_request:
types: [ labeled ]
jobs:
lint:
name: Check code for issues
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: tox
run: |
sudo apt install -y build-essential libsystemd-dev
pip3 install --user tox
tox -s
kas-ci:
name: Build kas/ci targets
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Cache downloads and sstate
uses: actions/cache@v4
with:
key: ${{ hashFiles('debian/changelog') }}
path: |
build/downloads
build/sstate-cache
- name: Build Fast CI targets
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/v')
run: |
./kas-container build kas/ci/fast.yml
sudo rm -rf --one-file-system build/tmp/work
- name: Build Full CI targets for bookworm
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
run: |
./kas-container build kas/ci/full-bookworm.yml
sudo rm -rf --one-file-system build/tmp/work
- name: Build Full CI targets for trixie
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
run: |
./kas-container build kas/ci/full-trixie.yml
sudo rm -rf --one-file-system build/tmp/work
- name: Build Full CI targets for noble
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
run: |
./kas-container build kas/ci/full-noble.yml
sudo rm -rf --one-file-system build/tmp/work
- name: Compress nanopi and rpi4b images
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo apt-get install -y zstd
zstd build/tmp/deploy/images/nanopi-*/mtda-image-mtda-*-nanopi-*.wic
zstd build/tmp/deploy/images/rpi4b*/mtda-image-mtda-*-rpi4b*.wic
- name: Upload images to GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
build/tmp/deploy/images/nanopi-*/mtda-image-mtda-*-nanopi-*.wic.zst
build/tmp/deploy/images/nanopi-*/mtda-image-mtda-*-nanopi-*.wic.bmap
build/tmp/deploy/images/rpi4b*/mtda-image-mtda-*-rpi4b*.wic.zst
build/tmp/deploy/images/rpi4b*/mtda-image-mtda-*-rpi4b*.wic.bmap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Debian bookworm packages to Gemfury
env:
GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')
run: |
find build/tmp/deploy/isar-apt/mtda-bookworm-* -name '*.deb' -print | while read p; do
curl -F package=@${p} https://{$GEMFURY_PUSH_TOKEN}@push.fury.io/mtda/;
done
- name: Publish Debian trixie packages to Gemfury
env:
GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_TRIXIE_PUSH_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')
run: |
find build/tmp/deploy/isar-apt/mtda-trixie-* -name '*.deb' -print | while read p; do
curl -F package=@${p} https://{$GEMFURY_PUSH_TOKEN}@push.fury.io/mtda-trixie/;
done
- name: Import GPG key
if: startsWith(github.ref, 'refs/tags/v')
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Upload source packages to PPA
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo apt install -y devscripts dh-python equivs python3-sphinx
./scripts/build-using-ppa ${PWD}/build noble