Skip to content

Commit

Permalink
Merge pull request #2 from hellsworth/41.0-release
Browse files Browse the repository at this point in the history
41.0 release
  • Loading branch information
kenvandine authored Dec 15, 2021
2 parents e2b5aee + 1a1f003 commit 76a62d1
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ git branch -u myfork/my-bugfix-branch
3. When you feel they're ready for submitting to the main repository (stable branch), [open up a pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) from your `my-bugfix-branch` to the `ubuntu/stable` branch.
4. Once you've opened the PR, it will automatically trigger the build-test action that will launch a build of the snap. You can watch the progress of the snap build from your PR (Show all checks -> Details). Once the snap build has completed, you can find the built snap (to test with) under "Artifacts".
4. Someone from the team will review the open PR and either merge it or start a discussion with you with additional changes or clarification needed.
5. Once the PR has been merged into the stable branch, then on the next git mirror sync (every 4 hours), launchpad will trigger [a build of the snap that gets published](https://launchpad.net/~desktop-snappers/gnome-clocks/+snap/gnome-clocks-stable) to the [snap store](https://snapcraft.io/gnome-clocks) into the *candidate* channel. After sufficient testing of the snap from the candidate channel, then the reviewer (a Collaborator of the snap in the store) will promote the snap to the stable branch in the snap store.
5. Once the PR has been merged into the stable branch, then on the next git mirror sync (every 4 hours), launchpad will trigger [a build of the snap that gets published](https://launchpad.net/~desktop-snappers/+snap/gnome-clocks) to the [snap store](https://snapcraft.io/gnome-clocks) into the *candidate* channel. After sufficient testing of the snap from the candidate channel, then the reviewer (a Collaborator of the snap in the store) will promote the snap to the stable branch in the snap store.
68 changes: 67 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,58 @@ apps:
desktop: usr/share/applications/org.gnome.clocks.desktop

parts:

buildenv:
plugin: nil
build-environment: &buildenv
- PATH: $SNAPCRAFT_STAGE/usr/bin:$PATH
- ACLOCAL_PATH: $SNAPCRAFT_STAGE/usr/share/aclocal
- XDG_DATA_DIRS: $SNAPCRAFT_STAGE/usr/share:/usr/share:$XDG_DATA_DIRS
- LD_LIBRARY_PATH: $SNAPCRAFT_STAGE/usr/lib/vala-0.54:$SNAPCRAFT_STAGE/usr/lib:$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$LD_LIBRARY_PATH
- GDK_PIXBUF_MODULE_FILE: $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
- PKG_CONFIG_PATH: $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig:$SNAPCRAFT_STAGE/usr/lib/pkgconfig:$SNAPCRAFT_STAGE/usr/share/pkgconfig:$PKG_CONFIG_PATH

glib:
source: https://gitlab.gnome.org/GNOME/glib.git
source-branch: 'glib-2-68'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
build-environment: *buildenv
build-environment:
- CFLAGS: -Wno-nonnull
override-build: |
set -eux
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/glib-2.0/
cp $SNAPCRAFT_PART_INSTALL/usr/bin/{gio-querymodules,glib-compile-schemas} $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/glib-2.0/
prime:
- -usr/bin
- -usr/lib/*/glib-2.0
- -usr/share
- -usr/include

vala:
after: [ glib ]
source: https://gitlab.gnome.org/GNOME/vala.git
source-branch: '0.54'
plugin: autotools
autotools-configure-parameters: [ --prefix=/usr ]
build-environment: *buildenv
build-packages:
- autoconf-archive
- flex
- bison
- libgraphviz-dev
prime:
- -*

gnome-clocks:
after: [ vala ]
source: https://gitlab.gnome.org/GNOME/gnome-clocks.git
source-tag: '40.0'
source-tag: '41.0'
source-type: git
plugin: meson
meson-parameters: [--prefix=/snap/gnome-clocks/current/usr]
Expand All @@ -57,6 +106,7 @@ parts:
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(git describe --tags --abbrev=10)
build-environment: *buildenv

libraries:
plugin: nil
Expand All @@ -70,3 +120,19 @@ parts:
- "usr/lib/*/libgweather*.so.*"
- "usr/share/libgweather"
- "usr/share/glib-2.0/schemas"

cleanup:
after: [ libraries ]
plugin: nil
override-prime: |
set -eux
rm -rf usr/share/doc
rm -rf usr/share/man
rm -rf usr/libexec/*/installed-tests
rm -rf usr/libexec/installed-tests
rm -f usr/lib/*.la
rm -f usr/lib/*/*.la
find . -type d -empty -delete

0 comments on commit 76a62d1

Please sign in to comment.