🔧 Generate references in parallel

This commit is contained in:
Simon Schneegans
2024-11-06 09:35:16 +01:00
parent 75a364186b
commit 5ba9312448
3 changed files with 13 additions and 25 deletions
+12 -2
View File
@@ -10,6 +10,16 @@ jobs:
references:
name: Generate References
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version:
- "39"
- "40"
- "41"
- "rawhide"
session:
- "gnome-xsession"
steps:
- uses: actions/checkout@v4
- name: Download Dependencies
@@ -19,8 +29,8 @@ jobs:
- name: Build Burn-My-Windows
run: make
- name: Generate References
run: sudo make references
run: sudo $GITHUB_WORKSPACE/tests/generate-references.sh -v ${{ matrix.version }} -s ${{ matrix.session }}
- uses: actions/upload-artifact@v3
with:
name: references
name: references-${{ matrix.version }}-${{ matrix.session }}
path: tests/references/
-22
View File
@@ -46,28 +46,6 @@ pot: $(JS_FILES) $(UI_FILES)
--output=po/$(NAME).pot \
$(JS_FILES) $(UI_FILES)
# This runs several tests in containerized versions of GNOME Shell.
test:
@ for version in 39 "rawhide" ; do \
for session in "gnome-xsession" "gnome-wayland-nested" ; do \
echo ; \
echo "Running Tests on Fedora $$version ($$session)." ; \
echo ; \
./tests/run-test.sh -s $$session -v $$version ; \
done \
done
# This re-generates all reference images required by the tests.
references:
@ for version in 39 "rawhide" ; do \
for session in "gnome-xsession" "gnome-wayland-nested" ; do \
echo ; \
echo "Generating References for Fedora $$version ($$session)." ; \
echo ; \
./tests/generate-references.sh -s $$session -v $$version ; \
done \
done
# This removes all temporary files created with the other recipes.
clean:
rm -rf $(ZIP_NAME) \
+1 -1
View File
@@ -60,7 +60,7 @@ EFFECT_CROP="100x100+900+500"
PREFS_CROP="100x100+700+300"
# Run the container. For more info, visit https://github.com/Schneegans/gnome-shell-pod.
POD=$(podman run --rm --cap-add=SYS_NICE --cap-add=IPC_LOCK -td "${IMAGE}")
POD=$(podman run --rm --cap-add=SYS_NICE --cap-add=IPC_LOCK --cap-add=CAP_SYS_ADMIN -td "${IMAGE}")
# Properly shutdown podman when this script is exited.
quit() {