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 - name: Build previous
run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build run: cmake -S prev -B prev/build -DGLERMINAL_TEST=ON && cmake --build prev/build
- name: Generate PNG file for current - 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 - 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 - name: Upload current PNG
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: current-basic name: basic
path: curr/build/tests/image.png path: |
- name: Upload previous PNG curr/build/tests/image.png
uses: actions/upload-artifact@v3 prev/build/tests/image.png
with:
name: previous-basic
path: prev/build/tests/image.png
- name: Compare PNG files - name: Compare PNG files
run: diff curr/build/tests/image.png prev/build/tests/image.png run: diff curr/build/tests/image.png prev/build/tests/image.png