Build Bazzite Kernel #6
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: read | |
jobs: | |
build_kernel: | |
runs-on: ubuntu-24.04 | |
environment: prod | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86_64] | |
fedora_version: [40] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create Build Environment | |
run: | | |
podman build . --tag 'fedora_builder' | |
- name: Compile Kernel | |
run: podman run --rm -v $(pwd):/workspace fedora_builder \ | |
fedpkg --release "f${{ matrix.fedora_version }}" \ | |
local --arch "${{ matrix.arch }}" --with baseonly \ | |
--builddir build --buildrootdir buildroot | |
- name: Upload Kernel | |
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 }} |