This commit is contained in:
parent
a3f2663232
commit
d714d8c181
2
.github/workflows/oneapi.yml
vendored
2
.github/workflows/oneapi.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: PikaOS Sync oneAPI Sync
|
||||
name: PikaOS Sync Intel oneAPI Sync
|
||||
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
23
oneapi.sh
23
oneapi.sh
@ -1,8 +1,27 @@
|
||||
#! /bin/bash
|
||||
set -e
|
||||
|
||||
# Give correct perms to Apt version checker
|
||||
chmod 755 ./ppp
|
||||
|
||||
# Get oneAPI pool
|
||||
mkdir -p ./manticoutput
|
||||
cd ./manticoutput
|
||||
|
||||
../ppp https://ppa.pika-os.com/dists/pikauwu/oneapi/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./
|
||||
|
||||
cd ../
|
||||
|
||||
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
|
||||
echo "Mantic repos are synced"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# send debs to server
|
||||
rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||
|
||||
# add debs to repo
|
||||
ssh ferreo@direct.pika-os.com 'aptly repo create -distribution=pikauwu -component=oneapi pikauwu-oneapi'
|
||||
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-oneapi /srv/www/incoming/'
|
||||
|
||||
# publish the repo
|
||||
ssh ferreo@direct.pika-os.com 'aptly publish repo -component=, pikauwu-oneapi filesystem:pikarepo:'
|
||||
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'
|
||||
|
Loading…
Reference in New Issue
Block a user