Skip to content

Commit

Permalink
Use prebuilt docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
azubieta committed Jan 27, 2021
1 parent d4d4aba commit 6eb9d9a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 59 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push]

jobs:
run_test:
runs-on: ubuntu-18.04
name: Test Action
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: "AppImageCrafters/appimage-demo-qt5"
- name: Checkout
uses: actions/checkout@v2
- name: Build Qt5 Application
run: |
sudo apt-get update
sudo apt-get install -y qt5-default qtdeclarative5-dev cmake git
git clone https://github.com/AppImageCrafters/appimage-demo-qt5.git
cd appimage-demo-qt5
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make -j`nproc` install DESTDIR=../AppDir
- name: Build AppImage
uses: ./
with:
recipe: "./appimage-demo-qt5/AppImageBuilder.yml"
env:
UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync
- uses: actions/upload-artifact@v2
with:
name: AppImage
path: './*.AppImage*'
10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# build-appimage-action
# build-appimage

This action creates an AppImage using appimage-builder. Check the
[appimage-builder documentation](https://appimage-builder.readthedocs.io/) for more details about writing the recipe
files.
Create an AppImage using appimage-builder. Check the [appimage-builder documentation](https://appimage-builder.readthedocs.io/) for more details about writing the recipe files.

## Inputs

Expand All @@ -11,21 +9,17 @@ files.

**Required** The appimage-builder recipe file.

### `args`

## Outputs
**Optional** The appimage-builder execution args.

### `appimage_file`

The generated AppImage file

### `appimage_zsync_file`

The generated AppImage zsync file if the update information was set.

## Example usage

```yaml
uses: AppImageCrafters/build-appimage-action@master
with:
recipe: 'AppImageBuilder.yml'
uses: AppImageCrafters/build-appimage@master
with:
recipe: "./appimage-demo-qt5/AppImageBuilder.yml"
env:
UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync
```
15 changes: 5 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ inputs:
args:
description: 'appimage-builder arguments'
required: false
default: ''
outputs:
appimage_file:
description: 'Generated AppImage file'
appimage_zsync_file:
description: 'Generated AppImage zsync file'
default: '--skip-test'
runs:
using: 'docker'
image: 'Dockerfile'
image: appimagecrafters/appimage-builder:0.8.2
args:
- ${{ inputs.args }}
- --recipe
- ${{ inputs.recipe }}
- appimage-builder
- '--recipe=${{ inputs.recipe }}'
- '${{ inputs.args }}'
24 changes: 0 additions & 24 deletions entrypoint.sh

This file was deleted.

0 comments on commit 6eb9d9a

Please sign in to comment.