Unverified Commit b2f942f7 authored by azubieta's avatar azubieta Committed by GitHub

Merge pull request #1 from AppImageCrafters/setup-github-actions

Create appimage.yml
parents 4c54434a a1c705ea
name: C/C++ AppImage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-appimage:
runs-on: ubuntu-latest
container:
image: appimagecrafters/appimage-builder
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
apt-get update
apt-get install -y qt5-default qtdeclarative5-dev cmake
- name: configure
run: cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: build
run: make -j`nproc`
- name: pack
run: |
make install DESTDIR=AppDir
export export UPDATE_INFO="gh-releases-zsync|AppImageCrafters|qt-hello-world|latest|*.AppImage.zsync"
appimage-builder --skip-test
- uses: actions/upload-artifact@v2
with:
name: AppImage
path: './*.AppImage*'
\ No newline at end of file
......@@ -14,6 +14,7 @@ build-amd64:
script:
- cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- make install DESTDIR=AppDir
- export UPDATE_INFO="zsync|https://www.opencode.net/azubieta/qt-hello-world/-/jobs/artifacts/master/raw/HelloWorld-latest-x86_64.AppImage.zsync?job=build-amd64"
- appimage-builder --skip-test
artifacts:
paths:
......
......@@ -125,5 +125,5 @@ AppDir:
use_host_x: true
AppImage:
arch: x86_64
update-information: zsync|https://www.opencode.net/azubieta/qt-hello-world/-/jobs/artifacts/master/raw/HelloWorld-latest-x86_64.AppImage.zsync?job=build-amd64
update-information: !ENV ${UPDATE_INFO}
sign-key: None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment