Skip to content

Commit 3ad9f22

Browse files
build 2
1 parent 0648618 commit 3ad9f22

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
sudo apt-get update
2020
sudo apt-get upgrade -y
21-
sudo apt install -y zstd
21+
sudo apt install zstd tree -y
2222
- name: Maximize build space
2323
uses: easimon/maximize-build-space@master
2424
with:
@@ -44,7 +44,13 @@ jobs:
4444
- name: prepare artifact
4545
run: |
4646
cd ${{ github.workspace }}
47-
sudo tar cvf - linux-${{ matrix.version }} | zstd - -o linux-${{ matrix.version }}.tar.zst
47+
sudo du -h --max-depth=1
48+
tree .
49+
VMLINUX_PATH="$(find . -name *vmlinux)"
50+
BZIMAGE_PATH="$(find . -name *bzImage)"
51+
KO_PATH="$(find . -name *.ko)"
52+
CONFIG_PATH="$(find . -name *.config)"
53+
tar -cvf - $VMLINUX_PATH $BZIMAGE_PATH $KO_PATH $CONFIG_PATH | zstd - -o linux-${{ matrix.version }}.tar.zst
4854
4955
- name: Artifact
5056
uses: actions/upload-artifact@v3

pack.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
VMLINUX_PATH="$(find . -name *vmlinux)"
3+
BZIMAGE_PATH="$(find . -name *bzImage)"
4+
KO_PATH="$(find . -name *ko)"
5+
CONFIG_PATH="$(find . -name *.config)"
6+
tar cvf - $VMLINUX_PATH $BZIMAGE_PATH $KO_PATH $CONFIG_PATH | zstd - -o linux-${{ matrix.version }}.tar.zst

patch.d/remove_kvm_werror.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
sed -i "/CONFIG_KVM_WERROR/s/^/# /g" .config
2+
sed -i "/CONFIG_KVM_WERROR/s/=y/=n/g" .config

0 commit comments

Comments
 (0)