Skip to content

Commit 6b8921e

Browse files
committed
refactor: use built AppImage to pack bash
1 parent 27ae366 commit 6b8921e

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed
Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# This workflows will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Buid AppImage
4+
name: Continuous Builds
55

66
on:
77
push
88

99
jobs:
10-
pack:
10+
build:
1111
runs-on: Ubuntu-20.04
12-
1312
steps:
1413
- uses: actions/checkout@v2
1514
- name: Get Version
@@ -30,5 +29,26 @@ jobs:
3029
- name: Upload Artifacts
3130
uses: actions/upload-artifact@v2.1.4
3231
with:
33-
name: artifacts
34-
path: './appimage-builder*.AppImage*'
32+
name: appimage-builder
33+
path: './appimage-builder*.AppImage*'
34+
test:
35+
runs-on: ubuntu-16.04
36+
needs: build
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Download AppImage from build job
40+
uses: actions/download-artifact@v2
41+
with:
42+
name: appimage-builder
43+
- name: Pack bash
44+
run: |
45+
chmod +x appimage-builder-0.8.3-x86_64.AppImage
46+
./appimage-builder-0.8.3-x86_64.AppImage --recipe ./examples/bash/AppImageBuilder.yml --skip-test
47+
- name: Test bash
48+
run: |
49+
./bash*.AppImage --appimage-extract-and-run -c "echo Hello World"
50+
- name: Upload Artifacts
51+
uses: actions/upload-artifact@v2.1.4
52+
with:
53+
name: bash
54+
path: './bash*.AppImage*'

AppImageBuilder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ AppDir:
3838
- fakeroot
3939
- libgdk-pixbuf2.0-dev
4040
- patchelf
41-
- python3-minimal
41+
- python3.8
4242
- squashfs-tools
4343
- strace
4444
- zsync

examples/bash/AppImageBuilder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ AppDir:
1313

1414
apt:
1515
arch: i386
16+
allow_unauthenticated: true
1617
sources:
1718
- sourceline: 'deb [arch=i386] http://archive.ubuntu.com/ubuntu bionic main'
1819
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'

0 commit comments

Comments
 (0)