publish amdgpu to pigeon
Some checks failed
Process AMDGPU-PRO Repository (Pigeon) / build (push) Failing after 51s

This commit is contained in:
Ward from fusion-voyager-3 2024-07-31 23:19:41 +03:00
parent d7c7925e70
commit ad5cd31c64
2 changed files with 28 additions and 24 deletions

1
.github/pigeon-amdgpu vendored Normal file
View File

@ -0,0 +1 @@
4

View File

@ -3,66 +3,69 @@ set -e
exit 1 exit 1
REPO_VERSION="6.1.3"
FIRMWARE_VERSION="6.7.0.60103-1787201.22.04"
# AMDGPU MIRROR # AMDGPU MIRROR
mkdir -p ./outputpika/amdgpu mkdir -p ./output/amdgpu
cd ./outputpika/amdgpu cd ./output/amdgpu
# amdgpu drm dir # amdgpu drm dir
mkdir -p ./libd mkdir -p ./libd
cd ./libd cd ./libd
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/libd/ wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/libd/
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
# amdgpu mesa dir (depends only) # amdgpu mesa dir (depends only)
mkdir -p ./mesa mkdir -p ./mesa
cd ./mesa cd ./mesa
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/m/mesa-amdgpu/ wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/m/mesa-amdgpu/
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
# amdgpu wayland dir (depends only) # amdgpu wayland dir (depends only)
mkdir -p ./wayland-amdgpu mkdir -p ./wayland-amdgpu
cd ./wayland-amdgpu cd ./wayland-amdgpu
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/w/wayland-amdgpu/ wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/w/wayland-amdgpu/
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
# amdgpu wayland protocols dir (depends only) # amdgpu wayland protocols dir (depends only)
mkdir -p ./wayland-protocols-amdgpu mkdir -p ./wayland-protocols-amdgpu
cd ./wayland-protocols-amdgpu cd ./wayland-protocols-amdgpu
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/w/wayland-protocols-amdgpu/ wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/w/wayland-protocols-amdgpu/
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
# amdgpu proprietary dir # amdgpu proprietary dir
mkdir -p ./proprietary mkdir -p ./proprietary
cd ./proprietary cd ./proprietary
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/6.0.1/ubuntu/pool/proprietary/ wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/proprietary/
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
# amdgpu-dkms-firmware dir # amdgpu-dkms-firmware dir
mkdir -p ./amdgpu-dkms-firmware mkdir -p ./amdgpu-dkms-firmware
cd ./amdgpu-dkms-firmware cd ./amdgpu-dkms-firmware
wget https://repo.radeon.com/amdgpu/6.1.1/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_6.7.0.60101-1769056.22.04_all.deb wget https://repo.radeon.com/amdgpu/"$REPO_VERSION"/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_"$FIRMWARE_VERSION"_all.deb
# Return to AMDGPU MIRROR # Return to AMDGPU MIRROR
cd ../ cd ../
mkdir -p ./outputpika mkdir -p ./output
mkdir -p ./outputpika-tmp mkdir -p ./output-temp
find . -name \*.deb -exec cp -vf {} ./outputpika-tmp \; find . -name \*.deb -exec cp -vf {} ./output-temp \;
cd ./output-temp
cd ./outputpika-tmp
for i in ./*.deb for i in ./*.deb
do do
mkdir $i-tmp mkdir $i-temp
dpkg-deb -R $i $i-tmp dpkg-deb -R $i $i-temp
cat $i-tmp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version cat $i-temp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
sed -i "s#$(cat $i-version)#$(cat $i-version)-pika$(date +"%Y%m%d").pikauwu3#g" $i-tmp/DEBIAN/control sed -i "s#$(cat $i-version)#$(cat $i-version)+pigeon$(date +"%Y%m%d")#g" $i-temp/DEBIAN/control
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-pikauwu3-fixed.deb sed -e s"#(=#(>=#"g -i $i-temp/DEBIAN/control
dpkg-deb -b $i-temp $i+pigeon$(date +"%Y%m%d")-fixed.deb
done done
cd ../ cd ../
mv -v ./outputpika-tmp/*-fixed.deb ./outputpika/ mv -v ./output-temp/*-fixed.deb ./output/
# send debs to server # send debs to server
rsync -azP ./outputpika/ ferreo@direct.pika-os.com:/srv/www/incoming/ rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo # send debs to server
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-amdgpu /srv/www/incoming/' rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/pigeon-incoming/
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'