Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
ci: add build support for snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Oct 1, 2021
1 parent da27827 commit 195a8ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ on:
- push

jobs:
Snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install snapcraft
run: |
sudo snap install --classic snapcraft
snapcraft --destructive-mode
- name: Publish to Snap Store
run: |
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
# if: github.ref == 'refs/heads/master'
snapcraft upload --release=edge *.snap
Wheel:
runs-on: ubuntu-latest
steps:
Expand Down
31 changes: 1 addition & 30 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,39 +53,10 @@ parts:
stage-snaps:
- classic-launch

# Remote part for support of various desktop technologies
# Refer: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml
desktop-qt5:
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
make-parameters:
- FLAVOR=qt5
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5
- try:
- appmenu-qt5
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5

guiscrcpy:
stage-snaps:
- scrcpy
after: [desktop-qt5, classic-launch, debian-multiarch-triplet-provider-launch]
after: [classic-launch, debian-multiarch-triplet-provider-launch]
# See 'snapcraft plugins'
plugin: python
python-version: python3
Expand Down

0 comments on commit 195a8ef

Please sign in to comment.