Skip to content

Commit 709276a

Browse files
committed
CI: mv AppImage Docker tests to standalone script
1 parent b731a43 commit 709276a

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh -eu
2+
3+
mkdir aitest-context # empty build context
4+
docker build -f .github/scripts/Linux/utils/Dockerfile.ubuntu -t aitest-ubuntu aitest-context
5+
docker build -f .github/scripts/Linux/utils/Dockerfile.arch -t aitest-arch aitest-context
6+
./UltraGrid-$VERSION-x86_64.AppImage --appimage-extract
7+
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun -v
8+
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun --tool uv-qt -h
9+
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu sh -c 'xvfb-run /AppImage/AppRun --tool uv-qt & { sleep 10; kill $!; }'
10+
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun --list-modules
11+
docker run --rm -v $PWD/squashfs-root:/AppImage aitest-arch /AppImage/AppRun --capabilities

.github/workflows/ccpp.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,11 @@ jobs:
108108
run: data/scripts/Linux-AppImage/create-appimage.sh https://github.com/$GITHUB_REPOSITORY/releases/download/continuous/UltraGrid-$CHANNEL-x86_64.AppImage.zsync
109109
- name: Check AppImage
110110
run: |
111-
mkdir aitest-context # empty build context
112-
docker build -f .github/scripts/Linux/utils/Dockerfile.ubuntu -t aitest-ubuntu aitest-context
113-
docker build -f .github/scripts/Linux/utils/Dockerfile.arch -t aitest-arch aitest-context
111+
.github/scripts/Linux/docker_appimage_tests.sh
114112
curl -LSf -O https://raw.githubusercontent.com/AppImage/pkg2appimage/\
115113
master/appdir-lint.sh -O https://raw.githubusercontent.com/probonopd/\
116114
AppImages/master/excludelist
117115
sudo apt install desktop-file-utils libfile-mimeinfo-perl # desktop-file-validate, mimetype
118-
./UltraGrid-$VERSION-x86_64.AppImage --appimage-extract
119-
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun -v
120-
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun --tool uv-qt -h
121-
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu sh -c 'xvfb-run /AppImage/AppRun --tool uv-qt & { sleep 10; kill $!; }'
122-
docker run --rm -v $PWD/squashfs-root/:/AppImage aitest-ubuntu /AppImage/AppRun --list-modules
123-
docker run --rm -v $PWD/squashfs-root:/AppImage aitest-arch /AppImage/AppRun --capabilities
124116
bash appdir-lint.sh squashfs-root
125117
- name: Compute checksum
126118
run: sha256sum UltraGrid-$VERSION-x86_64.AppImage

0 commit comments

Comments
 (0)