Skip to content

Commit bff5f81

Browse files
committed
Attempt to build natively for aarch64
Signed-off-by: Anastassios Nanos <[email protected]>
1 parent c0b92c3 commit bff5f81

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/test_kernels.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
push:
99
branches:
1010
- main
11-
- action_branch
12-
11+
pull_request:
12+
branches:
13+
- main
1314

1415
# Allows you to run this workflow manually from the Actions tab
1516
workflow_dispatch:
@@ -61,7 +62,7 @@ jobs:
6162
Patch-Linux:
6263
#tries to apply the patch to each version
6364
needs: [generate-matrix]
64-
runs-on: [ubuntu-latest]
65+
runs-on: ${{ matrix.architecture }}
6566
#strategy matrix to run jobs in parallel for each version
6667
strategy:
6768
matrix:
@@ -80,10 +81,10 @@ jobs:
8081
sudo apt-get -y update
8182
sudo apt-get -y install build-essential libncurses-dev bc bison flex libssl-dev libelf-dev
8283
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
84+
#if [[ $ARCHITECTURE == "arm64" ]]
85+
#then
86+
# sudo apt-get -y install gcc-aarch64-linux-gnu
87+
#fi
8788
8889
- name: Clone linux
8990
run: |
@@ -101,7 +102,7 @@ jobs:
101102
for i in ../*.patch
102103
do
103104
git config user.name "CI Bot"
104-
git config user.email "ci-bot@nubis-pc.eu"
105+
git config user.email "ci-bot@nubificus.co.uk"
105106
git am $i
106107
done
107108
echo ::set-output name=patch_exit_code::0
@@ -120,16 +121,19 @@ jobs:
120121
if [[ $ARCHITECTURE == "arm64" ]]
121122
then
122123
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
124+
#touch .config
125+
#CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make kvmm.config
126+
#CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make deb-pkg -j $(nproc)
127+
#sudo mv ../*linux-image*-dbg*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-dbg-latest.deb
127128
else
128129
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)
130+
#touch .config
131+
#make kvmm.config
132+
#make deb-pkg -j $(nproc)
132133
fi
134+
touch .config
135+
make kvmm.config
136+
make deb-pkg -j $(nproc)
133137
echo ::set-output name=build_exit_code::$?
134138
sudo mv ../*linux-headers*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-headers-$LINUX_VERSION-latest.deb
135139
sudo mv ../*linux-image*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-latest.deb

0 commit comments

Comments
 (0)