Skip to content

Commit 38c0a50

Browse files
authored
Merge pull request #33 from lool/fix-duplicate-kernels
workflows: linux: Fix accumulation of debs
2 parents ee2c2b3 + 06aa34a commit 38c0a50

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/linux.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,22 @@ jobs:
7373
apt -y install curl
7474
# copy to fileserver builds and downloads directories
7575
for dir in "/fileserver-builds/${BUILD_ID}" \
76-
"/fileserver-downloads/qcom-deb-images/linux-deb-latest"; do
76+
"/fileserver-downloads/${BUILD_ID}"; do
7777
mkdir -vp "${dir}"
7878
cp -av `dcmd *.changes` "${dir}"
7979
done
80+
# create or update linux-latest symlink
81+
mkdir -vp /fileserver-downloads/qcom-deb-images
82+
(
83+
cd /fileserver-downloads/qcom-deb-images
84+
# remove what used to be a directory and create/update symlink to
85+
# point to latest build
86+
rm -rvf linux-latest
87+
ln -svf "../${BUILD_ID}" linux-latest
88+
)
8089
# perhaps help NFS sync
8190
sync
8291
# instruct fileserver to publish this directory
8392
url="${FILESERVER_URL}/${BUILD_ID}/"
8493
curl -X POST -H 'Accept: text/event-stream' "${url}"
94+

0 commit comments

Comments
 (0)