Skip to content

Commit

Permalink
Kernel binary workflow: Build kernel package
Browse files Browse the repository at this point in the history
  • Loading branch information
lutoma committed Nov 13, 2023
1 parent bf47048 commit b03935a
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,32 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/lutoma/xelix/toolchain:latest
options: --user 1001
volumes:
- ${{ github.workspace }}:/src
options: --user 1000

steps:
- name: Check out git repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Adjust dir permissions
run: 'sudo chown dev: /src'

- name: Import signing key
run: 'echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import'

- name: Download PKGBUILD
run: 'wget -q https://raw.githubusercontent.com/lutoma/xelix/main/land/xelix-kernel/PKGBUILD'

- name: Run makepkg
run: 'makepkg -Ad --sign'

- name: Adjust package name
run: 'rename x86_64 i786 *'

- name: Configure sources
run: ./configure
- name: 'Create package directory'
run: 'mkdir kernel-pkg'

- name: Compile kernel
run: make
- name: 'Move stuff around'
run: 'mv *.pkg.* kernel-pkg'

- name: Upload binary artifact
- name: Upload package as artifact
uses: actions/upload-artifact@v3
with:
name: kernel-binary
path: xelix.bin
name: kernel-pkg
path: kernel-pkg

0 comments on commit b03935a

Please sign in to comment.