Skip to content

Commit

Permalink
publish.yml: add a rule to get and publish kernel artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Ronald Minnich <[email protected]>
  • Loading branch information
rminnich authored and orangecms committed Apr 25, 2024
1 parent b2e0c5c commit d3ec5e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
- name: Build
run: |
go install github.com/u-root/mkuimage/cmd/mkuimage@latest
go install github.com/hugelgupf/vmtest/tools/runvmtest@latest
GOARCH=${{ matrix.arch }} mkuimage -config=default \
-o ${{ matrix.arch }}-${{ matrix.template }}.cpio \
${{ matrix.template }}
xz --check=crc32 -9 --lzma2=dict=1MiB \
--stdout ${{ matrix.arch }}-${{ matrix.template }}.cpio | \
dd conv=sync bs=512 \
of=${{ matrix.arch }}-${{ matrix.template }}.cpio.xz
runvmtest -- bash -c "cp \$VMTEST_KERNEL ./kernel-x86_64"
- name: Upload
uses: svenstaro/upload-release-action@v2
Expand All @@ -39,3 +41,11 @@ jobs:
tag: ${{ github.ref }}
file: ${{ matrix.arch }}-${{ matrix.template }}.cpio.xz
asset_name: u-root_${{ matrix.arch }}_${{ matrix.template }}.cpio.xz

- name: Upload_kernels
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: kernel-x86_64
asset_name: kernel-x86_64

0 comments on commit d3ec5e5

Please sign in to comment.