aboutsummaryrefslogtreecommitdiff
path: root/.builds/x86_64_arch.yml
diff options
context:
space:
mode:
Diffstat (limited to '.builds/x86_64_arch.yml')
-rw-r--r--.builds/x86_64_arch.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.builds/x86_64_arch.yml b/.builds/x86_64_arch.yml
index 3dad0f4..3b90e37 100644
--- a/.builds/x86_64_arch.yml
+++ b/.builds/x86_64_arch.yml
@@ -18,6 +18,7 @@ packages:
- libadwaita
- gtksourceview5
- fakeroot
+ - podman
sources:
- git@git.sr.ht:~rbdr/map-linux
- https://github.com/flatpak/flatpak-builder-tools
@@ -39,9 +40,11 @@ tasks:
poetry install
- setup_flathub: |
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- - release_arch: |
+ - release: |
cd map-linux
- make -e target=x86_64-unknown-linux-gnu -e flatpak_cargo_generator=/home/build/flatpak-builder-tools/cargo ci-arch
- - release_generic: |
- cd map-linux
- make -e target=x86_64-unknown-linux-gnu -e flatpak_cargo_generator=/home/build/flatpak-builder-tools/cargo ci-generic
+ if [ "$GIT_REF" = "refs/heads/main" ]; then
+ make -e target=x86_64-unknown-linux-gnu -e channel=unstable -e flatpak_cargo_generator=/home/build/flatpak-builder-tools/cargo release
+ elif echo "$GIT_REF" | grep -q "refs/tags/"; then
+ channel=$(echo "$GIT_REF" | sed 's|refs/tags/||')
+ make -e target=x86_64-unknown-linux-gnu -e channel=$channel -e flatpak_cargo_generator=/home/build/flatpak-builder-tools/cargo release
+ fi