Clean and prepare for Github Actions

This commit is contained in:
Maciej 2026-03-11 13:55:23 +01:00
parent 1e0a50b095
commit de67251db7
11 changed files with 46 additions and 260 deletions

1
.github/CODEOWNERS vendored
View file

@ -1 +0,0 @@
* @posquit0 @OJFord

View file

@ -1,6 +0,0 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

View file

40
.github/labels.yaml vendored
View file

@ -1,40 +0,0 @@
# Warning
- color: "ee0701"
description: "Categorize bug reports."
name: ":warning: bug"
- color: "ee0701"
description: "Categorize vulnerability reports."
name: ":warning: vulnerability"
# Highlight
- color: "0e8a16"
description: "Good for newcomers."
name: ":fire: good first issue"
- color: "0e8a16"
description: "Extra attention is needed."
name: ":fire: help wanted"
# Cancel
- color: "b60205"
description: "This issue or pull request already exists."
name: ":pray: duplicate"
- color: "b60205"
description: "This will not be worked on."
name: ":pray: wontfix"
# Size
- color: "cfd3d7"
description: "Extra Small size issue or PR."
name: "size/XS"
- color: "cfd3d7"
description: "Small size issue or PR."
name: "size/S"
- color: "cfd3d7"
description: "Medium size issue or PR."
name: "size/M"
- color: "cfd3d7"
description: "Large size issue or PR."
name: "size/L"
- color: "cfd3d7"
description: "Extra Large size issue or PR."
name: "size/XL"

View file

@ -1,42 +0,0 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: LaTeX compilation
# You may pin to the exact commit or the version.
# uses: dante-ev/latex-action@49cf7cb5f79e7b2006dbdffea85e02bec0b6244b
uses: dante-ev/latex-action@2021-A
with:
# The root LaTeX file to be compiled
root_file: ./cv.tex
# The working directory for the latex compiler to be invoked
working_directory: # optional
# LaTeX engine to be used
compiler: lualatex
# Extra arguments to be passed to the latex compiler
args: # optional, default is -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
# Install extra packages by apt-get
extra_system_packages: # optional

View file

@ -1,57 +0,0 @@
name: Integration
on:
push:
branches:
- master
pull_request: {}
concurrency:
group: integration-${{ github.ref }}
cancel-in-progress: true
jobs:
changed:
runs-on: ubuntu-latest
outputs:
yaml_changed: ${{ steps.filter-yaml.outputs.changed }}
yaml_files: ${{ steps.filter-yaml.outputs.files }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Get Changed Files
id: changed-files
uses: dorny/paths-filter@v3
with:
list-files: json
filters: |
yaml:
- '**/*.yaml'
- '**/*.yml'
- name: Filter changed YAML files to outputs
id: filter-yaml
run: |
echo ::set-output name=changed::${{ steps.changed-files.outputs.yaml }}
echo ::set-output name=files::${{ steps.changed-files.outputs.yaml_files }}
yaml:
needs:
- changed
if: ${{ needs.changed.outputs.yaml_changed != 'false' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Lint YAML Files
id: yaml-lint
run: |
yamllint .

View file

@ -1,30 +1,42 @@
name: Compile PDFs
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push: {}
pull_request: {}
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container: texlive/texlive:latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repo
uses: actions/checkout@v6
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install fonts
run: |
apt update
apt install --yes \
fonts-roboto \
fonts-adobe-sourcesans3 \
;
- name: Compile
run: make
- uses: actions/upload-artifact@v6
with:
name: examples
path: examples/*.pdf
- name: LaTeX compilation
# You may pin to the exact commit or the version.
# uses: dante-ev/latex-action@49cf7cb5f79e7b2006dbdffea85e02bec0b6244b
uses: dante-ev/latex-action@2021-A
with:
# The root LaTeX file to be compiled
root_file: ./cv.tex
# The working directory for the latex compiler to be invoked
working_directory: # optional
# LaTeX engine to be used
compiler: lualatex
# Extra arguments to be passed to the latex compiler
args: # optional, default is -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
# Install extra packages by apt-get
extra_system_packages: # optional

View file

@ -1,41 +0,0 @@
name: Label Pull Requests
on:
- pull_request_target
jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- name: Add Labels for PR
uses: actions/labeler@v6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yaml
sync-labels: true
- name: Add PR Size Labels for PR
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
xs_max_size: '20'
s_label: 'size/S'
s_max_size: '100'
m_label: 'size/M'
m_max_size: '500'
l_label: 'size/L'
l_max_size: '1000'
xl_label: 'size/XL'
fail_if_xl: 'false'
message_if_xl: >
'This PR has too many changes.
Please make sure you are NOT addressing multiple issues with one PR.'
files_to_ignore: |
"examples/*"
"*.otf"
"*.pdf"
"*.png"
"*.sty"
"*.ttf"

View file

@ -1,25 +0,0 @@
name: Sync labels
on:
push:
branches:
- master
paths:
- .github/labels.yaml
jobs:
sync-labels:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yaml
skip-delete: false
dry-run: false
# exclude: |

View file

@ -1,27 +0,0 @@
name: Welcome for First Issue or Pull Request
on:
pull_request_target:
types:
- opened
issues:
types:
- opened
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Welcome for First Issue or Pull Request
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
### :wave: Welcome! Looks like this is your first issue.
Hey, thanks for your contribution! Please give us a bit of time to review it. 😄
pr-message: |
### :wave: Welcome! Looks like this is your first pull request.
Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

13
MAKEFILE Normal file
View file

@ -0,0 +1,13 @@
.PHONY: cv
CC = lualatex
CV_DIR = ./
CV_SRCS = $(shell find $(CV_DIR) -name '*.tex')
cv: $(foreach x, cv, $x.pdf)
cv.pdf: ./cv.tex $(CV_SRCS)
$(CC) -output-directory=$(CV_DIR) $<
clean:
rm -rf $(CV_DIR)/*.pdf