Skip to content

Commit fd8749b

Browse files
authored
Merge pull request #6 from sorenisanerd/main
Save packages and publish them
2 parents ea93416 + 3101a45 commit fd8749b

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,20 @@ jobs:
4747
run: find out/ -type l -delete
4848
- name: Sign artifacts
4949
run: for file in out/* ; do cosign sign-blob -d -y --bundle "${file}.sigbundle" "${file}"; done
50-
- name: Upload build artifact
51-
id: upload
50+
- name: Upload tools artifact
51+
id: upload-tools
5252
uses: actions/upload-artifact@v4
5353
with:
54-
path: out/*
54+
path: out/mangos.tools*
5555
compression-level: 0
5656
name: mangos.tools
57+
- name: Upload package artifact
58+
id: upload-pkgs
59+
uses: actions/upload-artifact@v4
60+
with:
61+
path: out/mangos-packages*
62+
compression-level: 0
63+
name: mangos.packages
5764
- name: Release
5865
if: github.ref_type == 'tag'
5966
uses: softprops/action-gh-release@v2

mkosi.profiles/build-systemd/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
VolatilePackages=systemd
33
SyncScripts=%C/systemd.sync
44
BuildScripts=%C/systemd.build.chroot
5+
PostInstallationScripts=%C/systemd.postinst
56
BuildPackages=build-essential
67
dpkg-dev
78
debhelper-compat

mkosi.profiles/build-systemd/systemd.build.chroot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ cd ${BUILDDIR}
33
dpkg-source -x ${SRCDIR}/pkg/systemd/systemd_258.1-1.dsc
44
cd systemd-258.1
55
dpkg-buildpackage -us -uc -b
6-
mv ../*.deb ${PACKAGEDIR}/
6+
cd ..
7+
tarball=mangos-packages_${IMAGE_VERSION}.tar
8+
tar cf ${tarball} *.{deb,ddeb}
9+
zstd --rm ${tarball}
10+
mv ${tarball}.zst ${ARTIFACTDIR}/
11+
mv *.deb ${PACKAGEDIR}/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
tarball=mangos-packages_${IMAGE_VERSION}.tar.zst
3+
mv ${ARTIFACTDIR}/${tarball} ${OUTPUTDIR}/

0 commit comments

Comments
 (0)