Skip to content

Commit c371d35

Browse files
committed
Add cleanup step
Signed-off-by: Anastassios Nanos <[email protected]>
1 parent bff5f81 commit c371d35

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/test_kernels.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,22 @@ jobs:
7575
ARCHITECTURE: ${{ matrix.architecture }}
7676

7777
steps:
78-
- uses: actions/checkout@v2
79-
- name: install necessary packages
78+
- name: Cleanup previous runs
8079
run: |
81-
sudo apt-get -y update
82-
sudo apt-get -y install build-essential libncurses-dev bc bison flex libssl-dev libelf-dev
83-
sudo apt-get -y install fakeroot rsync git kmod cpio
84-
#if [[ $ARCHITECTURE == "arm64" ]]
85-
#then
86-
# sudo apt-get -y install gcc-aarch64-linux-gnu
87-
#fi
80+
sudo rm -rf ${{ github.workspace }}/*
81+
sudo rm -rf ${{ github.workspace }}/.??*
82+
83+
- uses: actions/checkout@v2
84+
85+
# - name: install necessary packages
86+
# run: |
87+
# sudo apt-get -y update
88+
# sudo apt-get -y install build-essential libncurses-dev bc bison flex libssl-dev libelf-dev
89+
# sudo apt-get -y install fakeroot rsync git kmod cpio
90+
# #if [[ $ARCHITECTURE == "arm64" ]]
91+
# #then
92+
# # sudo apt-get -y install gcc-aarch64-linux-gnu
93+
# #fi
8894

8995
- name: Clone linux
9096
run: |
@@ -136,6 +142,9 @@ jobs:
136142
make deb-pkg -j $(nproc)
137143
echo ::set-output name=build_exit_code::$?
138144
sudo mv ../*linux-headers*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-headers-$LINUX_VERSION-latest.deb
145+
if [[ $ARCHITECTURE == "arm64" ]]
146+
sudo mv ../*linux-image*-dbg*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-dbg-latest.deb
147+
fi
139148
sudo mv ../*linux-image*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-image-$LINUX_VERSION-latest.deb
140149
sudo mv ../*linux-libc-dev*.deb artifacts/$ARCHITECTURE/$LINUX_VERSION/linux-libc-dev_$LINUX_VERSION-latest.deb
141150

0 commit comments

Comments
 (0)