Compare commits

..

No commits in common. "644da1675f549d334da1c2d496c3f3f3b3aa6808" and "ac8ce58660890d51504cf7dfa2264849b98bc833" have entirely different histories.

6 changed files with 41 additions and 37 deletions

View file

@ -1,33 +0,0 @@
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/src/tag/v4
with:
name: PDFs-${{ matrix.script }}
path: |
pdf_${{ matrix.script }}/
error.log

37
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,37 @@
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/**/*

View file

@ -2,7 +2,7 @@
root="$PWD"
folder="budget"
folder="Budget"
folder_html="html_${folder}"
folder_pdf="pdf_${folder}"

View file

@ -2,7 +2,7 @@
root="$PWD"
folder="events"
folder="Events"
folder_html="html_${folder}"
folder_pdf="pdf_${folder}"

View file

@ -2,7 +2,7 @@
root="$PWD"
folder="handovers"
folder="Handovers"
folder_html="html_${folder}"
folder_pdf="pdf_${folder}"

View file

@ -2,7 +2,7 @@
root="$PWD"
folder_html="html_minutes"
folder_html="html_Minutes"
folder_pdf="pdf_Minutes"
# make teh html files first