@@ -12,22 +12,21 @@ jobs:
1212 build :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v2
16- - name : Get Version
17- id : get_version
18- run : echo ::set-output name=VERSION::$(grep -Po 'version="\K((\d|\.)+)' setup.py)
1915 - name : Install dependencies
2016 run : |
21- sudo apt install -y python3.8-minimal python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace
17+ sudo apt install -y python3.8-minimal python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace git
2218 sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
2319 sudo chmod +x /usr/local/bin/appimagetool
20+ - uses : actions/checkout@v3
2421 - name : Install appimage-builder
2522 run : |
23+ git config --global --add safe.directory $PWD
24+ git fetch --prune --unshallow
2625 sudo python3.8 -m pip install .
2726 - name : Build AppImage
2827 run : |
2928 cd recipes/appimage-builder
30- export APPIMAGE_BUILDER_VERSION=${{ steps.get_version.outputs.VERSION }}
29+ export APPIMAGE_BUILDER_VERSION=$(appimage-builder --version | head -1 | cut -f 2 -d" ")
3130 appimage-builder --skip-test
3231 - name : Upload Artifacts
33323837 runs-on : ubuntu-latest
3938 needs : build
4039 steps :
41- - uses : actions/checkout@v2
40+ - uses : actions/checkout@v3
4241 - name : Download AppImage from build job
4342 uses : actions/download-artifact@v2
4443 with :
5049 run : |
5150 # build bash
5251 BUILDER_PATH=$(find $PWD -name appimage-builder-*.AppImage)
53- chmod +x $BUILDER_PATH
52+ chmod +x " $BUILDER_PATH"
5453 cd recipes/bash/
55- $BUILDER_PATH --skip-test
56- cat AppDir/org.gnu.bash.desktop
54+ "$BUILDER_PATH" --skip-test
5755 - name : Test bash
5856 run : |
5957 recipes/bash/*.AppImage --appimage-extract-and-run -c "echo Hello World"
6664 runs-on : ubuntu-20.04
6765 needs : test
6866 steps :
69- - uses : actions/checkout@v2
7067 - name : Download AppImage from build job
7168 uses : actions/download-artifact@v2
7269 with :
0 commit comments