8
8
push :
9
9
branches :
10
10
- main
11
- - action_branch
12
-
11
+ pull_request :
12
+ branches :
13
+ - main
13
14
14
15
# Allows you to run this workflow manually from the Actions tab
15
16
workflow_dispatch :
61
62
Patch-Linux :
62
63
# tries to apply the patch to each version
63
64
needs : [generate-matrix]
64
- runs-on : [ubuntu-latest]
65
+ runs-on : ${{ matrix.architecture }}
65
66
# strategy matrix to run jobs in parallel for each version
66
67
strategy :
67
68
matrix :
@@ -74,16 +75,18 @@ jobs:
74
75
ARCHITECTURE : ${{ matrix.architecture }}
75
76
76
77
steps :
78
+ - name : Cleanup previous runs
79
+ run : |
80
+ sudo rm -rf ${{ github.workspace }}/*
81
+ sudo rm -rf ${{ github.workspace }}/.??*
82
+
77
83
- uses : actions/checkout@v2
84
+
78
85
- name : install necessary packages
79
86
run : |
80
87
sudo apt-get -y update
81
88
sudo apt-get -y install build-essential libncurses-dev bc bison flex libssl-dev libelf-dev
82
89
sudo apt-get -y install fakeroot rsync git kmod cpio
83
- if [[ $ARCHITECTURE == "arm64" ]]
84
- then
85
- sudo apt-get -y install gcc-aarch64-linux-gnu
86
- fi
87
90
88
91
- name : Clone linux
89
92
run : |
@@ -101,7 +104,7 @@ jobs:
101
104
for i in ../*.patch
102
105
do
103
106
git config user.name "CI Bot"
104
- git config user.email "ci-bot@nubis-pc.eu "
107
+ git config user.email "ci-bot@nubificus.co.uk "
105
108
git am $i
106
109
done
107
110
echo ::set-output name=patch_exit_code::0
@@ -120,18 +123,18 @@ jobs:
120
123
if [[ $ARCHITECTURE == "arm64" ]]
121
124
then
122
125
wget https://gist.githubusercontent.com/ananos/dc2e2323f1b9bcb93c24f307e367ae80/raw/a001e5dd3b02fb79001296b1f9ae39270288f8d9/aarch64_config -O arch/arm64/configs/kvmm.config
123
- touch .config
124
- CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make kvmm.config
125
- CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make deb-pkg -j $(nproc)
126
- sudo mv ../*linux-image*-dbg*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-dbg-latest.deb
127
126
else
128
127
wget https://gist.githubusercontent.com/ananos/4749c77111a560503bd9725409d82800/raw/3e65dec157a7a19d965675054ef85ce8bc06c74b/basic%2520kernel%2520config -O arch/x86/configs/kvmm.config
129
- touch .config
130
- make kvmm.config
131
- make deb-pkg -j $(nproc)
132
128
fi
129
+ touch .config
130
+ make kvmm.config
131
+ make deb-pkg -j $(nproc)
133
132
echo ::set-output name=build_exit_code::$?
134
133
sudo mv ../*linux-headers*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-headers-$LINUX_VERSION-latest.deb
134
+ if [[ $ARCHITECTURE == "arm64" ]]
135
+ then
136
+ sudo mv ../*linux-image*-dbg*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-dbg-latest.deb
137
+ fi
135
138
sudo mv ../*linux-image*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-latest.deb
136
139
sudo mv ../*linux-libc-dev*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-libc-dev_$LINUX_VERSION-latest.deb
137
140
0 commit comments