Update build-appimage.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ AppImage | |
on: | |
workflow_dispatch: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-appimage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo 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` install DESTDIR=AppDir | |
- name: Build AppImage | |
uses: AppImageCrafters/build-appimage-action@master | |
env: | |
UPDATE_INFO: gh-releases-zsync|AppImageCrafters|appimage-demo-qt5|latest|*x86_64.AppImage.zsync | |
with: | |
recipe: AppImageBuilder.yml | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: AppImage | |
path: './*.AppImage*' |