ci: switch over to using forgejo actions
All checks were successful
On_Push / pdfs (budget) (push) Successful in 31s
On_Push / pdfs (events) (push) Successful in 7s
On_Push / pdfs (handovers) (push) Successful in 7s
On_Push / pdfs (minutes) (push) Successful in 13s

This commit is contained in:
silver 2024-08-10 23:40:35 +01:00
parent b3d2b83fed
commit ac1f26e126
Signed by: silver
GPG key ID: 0A1071E702CE4B4E
2 changed files with 33 additions and 37 deletions

View file

@ -0,0 +1,33 @@
name: On_Push
on:
push:
branches:
- 'main'
paths:
- .forgejo/**/*
- Committee/**/Handovers/*
- Minutes/**/*
- Committee/**/Budget/*
- Events/**/*
jobs:
# rust code must be formatted for standardisation
pdfs:
# build it using teh base nixos system, helps with caching
runs-on: nix
strategy:
matrix:
script: [ handovers, minutes, budget, events ]
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
# actual script to run the build process
- run: nix run .#${{ matrix.script }}
# upload the files
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: PDFs-${{ matrix.script }}
path: |
pdf_${{ matrix.script }}/
error.log

View file

@ -1,37 +0,0 @@
stages:
- build
pdf:
tags:
- nix
before_script:
# basic stuff
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bash
# setup the cache stuff
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#attic-client
- attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
- attic use skynet-cache
stage: build
# what it runs
script:
- attic watch-store skynet-cache &
- nix --extra-experimental-features 'nix-command flakes' run .#handovers
- nix --extra-experimental-features 'nix-command flakes' run .#minutes
- nix --extra-experimental-features 'nix-command flakes' run .#budget
- nix --extra-experimental-features 'nix-command flakes' run .#events
artifacts:
name: "PDFs"
paths:
- pdf_Handovers/
- pdf_Minutes/
- pdf_Budget/
- pdf_Events/
- errors.log
rules:
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- Committee/**/Handovers/*
- Minutes/**/*
- Committee/**/Budget/*
- Events/**/*