File tree Expand file tree Collapse file tree 1 file changed +30
-5
lines changed
Expand file tree Collapse file tree 1 file changed +30
-5
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,36 @@ jobs:
3333
3434 - name : Install dependencies
3535 run : |
36+ export DEBIAN_FRONTEND="noninteractive"
3637 apt-get update
37- apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick
38+ apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick gcc
3839
39- - name : Build and Release
40+ - name : Build pkg2appimage
4041 run : |
41- bash -ex dogfeeding.sh
42- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
43- bash upload.sh ./out/pkg2appimage*.AppImage*
42+ bash -ex dogfeeding.sh
43+
44+ - name : Test to create Hello AppImage
45+ run : |
46+ chmod +x ./out/pkg2appimage*.AppImage*
47+ ./out/pkg2appimage*.AppImage* recipes/hello.yml
48+
49+ - name : Verify AppImage Creation and Test
50+ run : |
51+ if ls out/hello-*.AppImage 1> /dev/null 2>&1; then
52+ echo "hello AppImage successfully created."
53+ ./out/hello-*.AppImage | tee output.txt
54+ if grep -q "Hello, world!" output.txt; then
55+ echo "hello AppImage test passed."
56+ else
57+ echo "hello AppImage test failed." >&2
58+ exit 1
59+ fi
60+ else
61+ echo "Failed to create hello AppImage." >&2
62+ exit 1
63+ fi
64+
65+ - name : Release
66+ run : |
67+ wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
68+ bash upload.sh ./out/pkg2appimage*.AppImage*
You can’t perform that action at this time.
0 commit comments