aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 46eac1792688a3c954f40a8c104f4ef9be9fa8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: archlinux
packages:
  - make
  - minisign
  - rsync
  - coreutils
  - clang
  - lld
  - rustup
  - curl
  - tar
  - gzip
  - gettext
  - python-poetry
  - flatpak
  - flatpak-builder
  - gtk4
  - libadwaita
  - gtksourceview5
sources:
  - git@git.sr.ht:~rbdr/map-linux
  - https://github.com/flatpak/flatpak-builder-tools
environment:
  GPG_TTY: /dev/pts/0
secrets:
  - a1e0e3da-c1ad-473a-ad69-8878f267a628
  - eaecf3b4-a508-4fa6-a36e-6b9ed4468eae
  - f80356df-eb81-487f-8739-fbf08bf204dc
  - 05763ec6-2f17-46b5-90f6-963482975b8b
tasks:
  - set_rust: |
      cd map-linux
      make set_rust
  - install_binstall: |
      curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
  - install_builders: |
      cargo binstall cargo-generate-rpm --no-confirm
      cargo binstall cargo-deb --no-confirm
  - setup_flatpak_tools: |
      cd flatpak-builder-tools/cargo
      poetry install
  - setup_flathub: |
      flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  - release: |
      cd map-linux
      make -e architectures=x86_64-unknown-linux-gnu -e flatpak_cargo_generator=/home/build/flatpak-builder-tools/cargo ci