Upload to same artifact

This commit is contained in:
Shylie 2024-05-28 13:40:59 -04:00
parent fc4c150965
commit 96944fcaa9

View File

@ -24,18 +24,15 @@ jobs:
- name: Build previous
run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build
- name: Generate PNG file for current
run: cd curr/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
run: cd curr/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a -s="-screen 0 1280x800x24" ./test-basic
- name: Generate PNG file for previous
run: cd prev/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a ./test-basic
run: cd prev/build/tests && XDG_RUNTIME_DIR=$PWD xvfb-run -a -s="-screen 0 1280x800x24" ./test-basic
- name: Upload current PNG
uses: actions/upload-artifact@v3
with:
name: current-basic
path: curr/build/tests/image.png
- name: Upload previous PNG
uses: actions/upload-artifact@v3
with:
name: previous-basic
path: prev/build/tests/image.png
name: basic
path: |
curr/build/tests/image.png
prev/build/tests/image.png
- name: Compare PNG files
run: diff curr/build/tests/image.png prev/build/tests/image.png