6.11.3-302.2: More action fixes + dont maximize build space #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Bazzite Kernel | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
build_kernel: | |
runs-on: ubuntu-24.04 | |
environment: prod | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86_64] | |
fedora_version: [40] | |
steps: | |
# - name: Maximize build space | |
# uses: ublue-os/remove-unwanted-software@v7 | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create Build Environment | |
run: | | |
sudo podman build . --tag 'fedora_builder' --build-arg UID=$(id -u) --build-arg GID=$(id -g) | |
- name: Compile Kernel | |
run: | | |
sudo podman run --rm -v $(pwd):/workspace fedora_builder fedpkg \ | |
--name kernel --namespace rpms --release "f${{ matrix.fedora_version }}" \ | |
local --arch "${{ matrix.arch }}" --with baseonly \ | |
--builddir build --buildrootdir buildroot | |
- name: Upload Kernel to action | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kernel-f${{ matrix.fedora_version}}-${{ matrix.arch }} | |
path: | | |
.build-*.log | |
${{ matrix.arch }}/kernel-*.rpm | |
compression-level: 0 # already compressed | |
- name: Upload Kernel to release | |
if: github.event_name == 'release' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
.build-*.log | |
${{ matrix.arch }}/kernel-*.rpm | |
tag_name: ${{ github.ref_name }} | |
body: | | |
Fill me in. Workflow ran manually (?). | |
draft: true | |
# if we did not run on a release, it is a pre-release | |
prerelease: true # contains(github.ref, 'pre') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |