diff --git a/.github/raven-oneapi b/.github/raven-oneapi new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.github/raven-oneapi @@ -0,0 +1 @@ +1 diff --git a/.github/workflows/parrot-steam.yml b/.github/workflows/parrot-steam.yml index 4ec0ca3..c08abac 100644 --- a/.github/workflows/parrot-steam.yml +++ b/.github/workflows/parrot-steam.yml @@ -1,6 +1,8 @@ name: Process Steam Powered Repository (Parrot) on: + schedule: + - cron: '17 2 * * *' push: branches: - main diff --git a/.github/workflows/pigeon-intel.yml b/.github/workflows/pigeon-intel.yml index 8f7637f..f02cf75 100644 --- a/.github/workflows/pigeon-intel.yml +++ b/.github/workflows/pigeon-intel.yml @@ -1,6 +1,8 @@ name: Process Intel Official Repository (Pigeon) on: + schedule: + - cron: '17 2 * * *' push: branches: - main diff --git a/.github/workflows/raven-oneapi.yml b/.github/workflows/raven-oneapi.yml new file mode 100644 index 0000000..440d365 --- /dev/null +++ b/.github/workflows/raven-oneapi.yml @@ -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 diff --git a/.github/workflows/raven-rocm.yml b/.github/workflows/raven-rocm.yml index b812f7c..e4239ad 100644 --- a/.github/workflows/raven-rocm.yml +++ b/.github/workflows/raven-rocm.yml @@ -1,6 +1,8 @@ name: Process Radeon ROCm Repository (Raven) on: + schedule: + - cron: '17 2 * * *' push: branches: - main diff --git a/raven-oneapi.sh b/raven-oneapi.sh new file mode 100755 index 0000000..7b8cabb --- /dev/null +++ b/raven-oneapi.sh @@ -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/