add cron job and oneapi
Some checks failed
Process Radeon ROCm Repository (Raven) / build (push) Successful in 1m21s
Process Intel OneAPI Repository (Raven) / build (push) Failing after 2h37m2s
Process Intel Official Repository (Pigeon) / build (push) Successful in 1m8s
Process Steam Powered Repository (Parrot) / build (push) Successful in 56s

This commit is contained in:
Ward from fusion-voyager-3 2024-08-01 01:22:57 +03:00
parent 27345a8ce4
commit 526db509d1
6 changed files with 61 additions and 0 deletions

1
.github/raven-oneapi vendored Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,6 +1,8 @@
name: Process Steam Powered Repository (Parrot)
on:
schedule:
- cron: '17 2 * * *'
push:
branches:
- main

View File

@ -1,6 +1,8 @@
name: Process Intel Official Repository (Pigeon)
on:
schedule:
- cron: '17 2 * * *'
push:
branches:
- main

36
.github/workflows/raven-oneapi.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Process Intel OneAPI Repository (Raven)
on:
schedule:
- cron: '17 2 * * *'
push:
branches:
- main
paths:
- '.github/raven-oneapi'
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
volumes:
- /proc:/proc
options: --privileged -it
steps:
- name: Install Some essentials
run: apt-get update -y && apt-get install -y wget npm rsync nodejs
- uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Pika Package Processor Script
run: ./raven-oneapi.sh

View File

@ -1,6 +1,8 @@
name: Process Radeon ROCm Repository (Raven)
on:
schedule:
- cron: '17 2 * * *'
push:
branches:
- main

18
raven-oneapi.sh Executable file
View File

@ -0,0 +1,18 @@
#! /bin/bash
set -e
# Give correct perms to Pika Package Processor
chmod 755 ./ppp
# External Intel OneAPI mirror
mkdir -p ./output
./ppp https://ppa.pika-os.com/dists/pika/raven/binary-amd64/Packages https://apt.repos.intel.com/oneapi/dists/all/main/binary-amd64/Packages https://apt.repos.intel.com/oneapi ./output/
# Check if any updates have been downloaded
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Repos are synced"
exit 0
fi
# send debs to server
rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/raven-incoming/