Skip to content

imp - Build workflows ACTUALLY use scripts #35

imp - Build workflows ACTUALLY use scripts

imp - Build workflows ACTUALLY use scripts #35

Workflow file for this run

name: Push to PPA
on:
push:
tags:
- 'v0.1.*'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install required packages
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt autoremove dotnet*
sudo apt update
sudo NEEDRESTART_SUSPEND=1 apt install curl locales-all libunwind8-dev libcurl4-openssl-dev dotnet-sdk-8.0 libjack0 libportaudio2 libopenal1 libsdl2-2.0-0 libpulse0 libaudio2 devscripts debhelper-compat dput build-essential
- name: Initialize offline package
run: |
chmod +x tools/initializeoffline.sh
make debian-init-offline
make clean
- name: Make original package
run: |
mv debian ..
mv .github ..
tar cfv ../kernel-simulator_3.0.26.53-0.1.1.24.orig.tar .
xz ../kernel-simulator_3.0.26.53-0.1.1.24.orig.tar
mv ../debian .
- name: Build source package
run: debuild -S -sa
- name: Push to Launchpad
run: dput ppa:eofla/kernel-sim ../kernel-simulator_*_source.changes