mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-18 03:50:53 +00:00
Compare commits
3 Commits
kernel-7.1
...
kernel-7.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fbb1b2057 | ||
|
|
935dc3e322 | ||
|
|
9ee33721e4 |
18
.github/workflows/build-kernel.yml
vendored
18
.github/workflows/build-kernel.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
description: 'Package format'
|
description: 'Package format'
|
||||||
default: 'all'
|
default: 'all'
|
||||||
type: choice
|
type: choice
|
||||||
options: [deb, arch, all]
|
options: [deb, arch, rpm, all]
|
||||||
patches_ref:
|
patches_ref:
|
||||||
description: 'Patches branch/tag/SHA (empty = default)'
|
description: 'Patches branch/tag/SHA (empty = default)'
|
||||||
default: ''
|
default: ''
|
||||||
@@ -43,6 +43,18 @@ jobs:
|
|||||||
bash image/build_image.sh --kernel-only \
|
bash image/build_image.sh --kernel-only \
|
||||||
--distro "$FORMAT" \
|
--distro "$FORMAT" \
|
||||||
--patches-ref "$PATCHES_REF"
|
--patches-ref "$PATCHES_REF"
|
||||||
|
# build_image.sh's --distro all skips the rpm packager, and each
|
||||||
|
# kernel-build call wipes image/linux-bin/. Stash the deb + pkg.tar.zst
|
||||||
|
# from the "all" run before firing the rpm-producing "fedora" run,
|
||||||
|
# then restore so the release ships all three formats.
|
||||||
|
if [ "$FORMAT" = "all" ]; then
|
||||||
|
mkdir -p /tmp/kernel-stash
|
||||||
|
cp image/linux-bin/*.deb image/linux-bin/*.pkg.tar.zst /tmp/kernel-stash/
|
||||||
|
bash image/build_image.sh --kernel-only \
|
||||||
|
--distro fedora \
|
||||||
|
--patches-ref "$PATCHES_REF"
|
||||||
|
cp /tmp/kernel-stash/*.deb /tmp/kernel-stash/*.pkg.tar.zst image/linux-bin/
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Read kernel and patches version
|
- name: Read kernel and patches version
|
||||||
id: version
|
id: version
|
||||||
@@ -61,6 +73,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
image/linux-bin/*.deb
|
image/linux-bin/*.deb
|
||||||
image/linux-bin/*.pkg.tar.zst
|
image/linux-bin/*.pkg.tar.zst
|
||||||
|
image/linux-bin/*.rpm
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
- name: Compute checksums
|
- name: Compute checksums
|
||||||
@@ -68,7 +81,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
{
|
{
|
||||||
echo 'sums<<SHAEOF'
|
echo 'sums<<SHAEOF'
|
||||||
sha256sum image/linux-bin/*.deb image/linux-bin/*.pkg.tar.zst | sed 's|image/linux-bin/||'
|
sha256sum image/linux-bin/*.deb image/linux-bin/*.pkg.tar.zst image/linux-bin/*.rpm 2>/dev/null | sed 's|image/linux-bin/||'
|
||||||
echo 'SHAEOF'
|
echo 'SHAEOF'
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
@@ -90,4 +103,5 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
image/linux-bin/*.deb
|
image/linux-bin/*.deb
|
||||||
image/linux-bin/*.pkg.tar.zst
|
image/linux-bin/*.pkg.tar.zst
|
||||||
|
image/linux-bin/*.rpm
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
|||||||
Reference in New Issue
Block a user