From cbf42934ee6985ca4fcf3fba609be420f00f6876 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Sun, 9 Feb 2020 21:05:05 -0600 Subject: [PATCH] ci: build on alpine and fedora --- .build.yml => .builds/alpine.yml | 0 .builds/fedora.yml | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) rename .build.yml => .builds/alpine.yml (100%) create mode 100644 .builds/fedora.yml diff --git a/.build.yml b/.builds/alpine.yml similarity index 100% rename from .build.yml rename to .builds/alpine.yml diff --git a/.builds/fedora.yml b/.builds/fedora.yml new file mode 100644 index 0000000..405a9b9 --- /dev/null +++ b/.builds/fedora.yml @@ -0,0 +1,34 @@ +image: fedora/31 +packages: + - gtk+-devel + - meson + - json-glib-devel + - libhandy-devel + - libsoup-devel + - libsecret-devel + - flatpak +secrets: + - 92357bf7-1b44-4630-999e-fca4a120c50b + - e7a81607-18a2-4f0a-964e-9225b589dbb5 +sources: + - https://git.sr.ht/~tristan957/harvest-almanac +tasks: + - setup: | + cd harvest-almanac + CC=gcc meson -Dwerror=true -Dbuildtype=release -Dwarning_level=2 \ + -Dlibhandy:tests=false -Dlibhandy:vapi=false -Dlibhandy:example=false \ + -Dlibhandy:introspection=disabled -Dlibhandy:glade_catalog=disabled build + - build: | + cd harvest-almanac + ninja -C build + # - flatpak: | + # cd harvest-almanac + # flatpak-builder --verbose --sandbox --force-clean --repo=.flatpak-repo \ + # --ccache --user --install-deps-from=flathub --install .flatpak \ + # dist/flatpak/io.partin.tristan.HarvestAlmanac.yaml + - test: | + cd harvest-almanac + set +x + . ~/.harvest-almanac.env + set -x + ninja test -C build -- 2.45.2