Skip to content

Commit 5ba9312

Browse files
committed
🔧 Generate references in parallel
1 parent 75a3641 commit 5ba9312

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

.github/workflows/references.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ jobs:
1010
references:
1111
name: Generate References
1212
runs-on: ubuntu-22.04
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- "39"
18+
- "40"
19+
- "41"
20+
- "rawhide"
21+
session:
22+
- "gnome-xsession"
1323
steps:
1424
- uses: actions/checkout@v4
1525
- name: Download Dependencies
@@ -19,8 +29,8 @@ jobs:
1929
- name: Build Burn-My-Windows
2030
run: make
2131
- name: Generate References
22-
run: sudo make references
32+
run: sudo $GITHUB_WORKSPACE/tests/generate-references.sh -v ${{ matrix.version }} -s ${{ matrix.session }}
2333
- uses: actions/upload-artifact@v3
2434
with:
25-
name: references
35+
name: references-${{ matrix.version }}-${{ matrix.session }}
2636
path: tests/references/

Makefile

-22
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,6 @@ pot: $(JS_FILES) $(UI_FILES)
4646
--output=po/$(NAME).pot \
4747
$(JS_FILES) $(UI_FILES)
4848

49-
# This runs several tests in containerized versions of GNOME Shell.
50-
test:
51-
@ for version in 39 "rawhide" ; do \
52-
for session in "gnome-xsession" "gnome-wayland-nested" ; do \
53-
echo ; \
54-
echo "Running Tests on Fedora $$version ($$session)." ; \
55-
echo ; \
56-
./tests/run-test.sh -s $$session -v $$version ; \
57-
done \
58-
done
59-
60-
# This re-generates all reference images required by the tests.
61-
references:
62-
@ for version in 39 "rawhide" ; do \
63-
for session in "gnome-xsession" "gnome-wayland-nested" ; do \
64-
echo ; \
65-
echo "Generating References for Fedora $$version ($$session)." ; \
66-
echo ; \
67-
./tests/generate-references.sh -s $$session -v $$version ; \
68-
done \
69-
done
70-
7149
# This removes all temporary files created with the other recipes.
7250
clean:
7351
rm -rf $(ZIP_NAME) \

tests/generate-references.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ EFFECT_CROP="100x100+900+500"
6060
PREFS_CROP="100x100+700+300"
6161

6262
# Run the container. For more info, visit https://github.com/Schneegans/gnome-shell-pod.
63-
POD=$(podman run --rm --cap-add=SYS_NICE --cap-add=IPC_LOCK -td "${IMAGE}")
63+
POD=$(podman run --rm --cap-add=SYS_NICE --cap-add=IPC_LOCK --cap-add=CAP_SYS_ADMIN -td "${IMAGE}")
6464

6565
# Properly shutdown podman when this script is exited.
6666
quit() {

0 commit comments

Comments
 (0)