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 5, 2021
1 parent da27827 commit 30ad3ab
Show file tree
Hide file tree
Showing 2 changed files with 26 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
40 changes: 10 additions & 30 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,40 +53,20 @@ 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]
stage-packages:
- freeglut3
after: [classic-launch, debian-multiarch-triplet-provider-launch]
# See 'snapcraft plugins'
build-packages:
- python3-pip
override-build: |
python -m pep517.build .
tar -xvf dist/*.tar.gz setup.py
rm -rf dist
snapcraftctl build
plugin: python
python-version: python3
source: .
Expand Down

0 comments on commit 30ad3ab

Please sign in to comment.