Skip to content

Commit

Permalink
Run test after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Jan 18, 2025
1 parent 338cd3e commit 8fddf80
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,36 @@ jobs:

- name: Install dependencies
run: |
export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick
apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick gcc
- name: Build and Release
- name: Build pkg2appimage
run: |
bash -ex dogfeeding.sh
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh ./out/pkg2appimage*.AppImage*
bash -ex dogfeeding.sh
- name: Test to create neoVim AppImage
run: |
chmod +x ./out/pkg2appimage*.AppImage*
./out/pkg2appimage*.AppImage* recipes/neovim.yml
- name: Verify AppImage Creation and Test
run: |
if ls out/neovim-*.AppImage 1> /dev/null 2>&1; then
echo "Neovim AppImage successfully created."
./out/neovim-*.AppImage --version | tee version_output.txt
if grep -q "NVIM" version_output.txt && grep -q "Build type: Release" version_output.txt; then
echo "Neovim AppImage test passed."
else
echo "Neovim AppImage test failed: Version output is incorrect." >&2
exit 1
fi
else
echo "Failed to create Neovim AppImage." >&2
exit 1
fi
- name: Release
run: |
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh ./out/pkg2appimage*.AppImage*

0 comments on commit 8fddf80

Please sign in to comment.