-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.43 KB
/
package.yml
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
47
48
49
50
51
name: Build package
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
pkg:
- xdg-desktop-portal-gnome
arch:
- x86_64
- aarch64
version:
- gnome1
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
container:
image: registry.fedoraproject.org/fedora:39
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install repositories and dependencies
run: |
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/gnome1.repo
dnf install -y anda mock subatomic-cli gnome-mock-configs git curl wget
- uses: actions/checkout@v3
with:
submodules: "recursive"
set-safe-directory: true
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: andaman-common-pkgs/anda-build@main
with:
name: ${{ matrix.pkg }}
mockConfig: gnome-1-${{ matrix.arch }}
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra39.repo
- name: Upload to subatomic
run: |
subatomic-cli upload --prune \
--server https://subatomic.fyralabs.com \
--token ${{ secrets.SUBATOMIC_TOKEN }} \
${{ matrix.version }} anda-build/rpm/rpms/*