glerminal/.gitea/workflows/make_png.yaml
2024-05-28 11:16:24 -04:00

32 lines
927 B
YAML

name: Make PNG
run-name: ${{ gitea.actor }} is recording the PNG output.
on: push
jobs:
build-app:
runs-on: linux_amd64
steps:
- name: Checkout curr
uses: actions/checkout@v4
with:
path: curr
submodules: recursive
- name: Checkout prev
uses: actions/checkout@v4
with:
path: prev
fetch-depth: 2
submodules: recursive
- run: cd prev && git checkout HEAD^
- name: Configure CMake for curr
run: cmake -S curr -B curr/build
- name: Configure CMake for prev
run: cmake -S prev -B prev/build
- name: Generate PNG file for curr
run: cd curr/build/tests && xvfb-run ./test-basic
- name: Generate PNG file for prev
run: cd prev/build/tests && xvfb-run ./test-basic
- name: Compare PNG files
run: diff curr/build/tests/image.png prev/build/tests/image.png