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

Commit c082f9e

Browse files
committed
ci: add build support for snaps
1 parent da27827 commit c082f9e

File tree

2 files changed

+26
-30
lines changed

2 files changed

+26
-30
lines changed

Diff for: .github/workflows/continuous.yml

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
- push
55

66
jobs:
7+
Snap:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Install snapcraft
13+
run: |
14+
sudo snap install --classic snapcraft
15+
snapcraft --destructive-mode
16+
17+
- name: Publish to Snap Store
18+
run: |
19+
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
20+
# if: github.ref == 'refs/heads/master'
21+
snapcraft upload --release=edge *.snap
22+
723
Wheel:
824
runs-on: ubuntu-latest
925
steps:

Diff for: snap/snapcraft.yaml

+10-30
Original file line numberDiff line numberDiff line change
@@ -53,40 +53,20 @@ parts:
5353
stage-snaps:
5454
- classic-launch
5555

56-
# Remote part for support of various desktop technologies
57-
# Refer: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml
58-
desktop-qt5:
59-
build-packages:
60-
- build-essential
61-
- qtbase5-dev
62-
- dpkg-dev
63-
make-parameters:
64-
- FLAVOR=qt5
65-
plugin: make
66-
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
67-
source-subdir: qt
68-
stage-packages:
69-
- libxkbcommon0
70-
- ttf-ubuntu-font-family
71-
- dmz-cursor-theme
72-
- light-themes
73-
- adwaita-icon-theme
74-
- gnome-themes-standard
75-
- shared-mime-info
76-
- libqt5gui5
77-
- libgdk-pixbuf2.0-0
78-
- libqt5svg5
79-
- try:
80-
- appmenu-qt5
81-
- locales-all
82-
- xdg-user-dirs
83-
- fcitx-frontend-qt5
84-
8556
guiscrcpy:
8657
stage-snaps:
8758
- scrcpy
88-
after: [desktop-qt5, classic-launch, debian-multiarch-triplet-provider-launch]
59+
stage-packages:
60+
- freeglut3
61+
after: [classic-launch, debian-multiarch-triplet-provider-launch]
8962
# See 'snapcraft plugins'
63+
build-packages:
64+
- python3-pip
65+
override-build: |
66+
python setup.py sdist
67+
tar -xvf dist/*.tar.gz setup.py
68+
rm -rf dist
69+
snapcraftctl build
9070
plugin: python
9171
python-version: python3
9272
source: .

0 commit comments

Comments
 (0)