-
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (52 loc) · 1.66 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
52
53
54
55
56
57
58
59
60
name: Build package
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
pkg:
- fusebox
arch:
- x86_64
- aarch64
version:
- tau1
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
container:
image: registry.fedoraproject.org/fedora:38
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/tau1.repo
dnf install -y anda mock subatomic-cli tau-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: tau-1-${{ matrix.arch }}
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.pkg }}-${{ matrix.arch }}-${{ matrix.version }}
path: anda-build/rpm/rpms/*
- name: Upload to subatomic
if: github.event_name != 'pull_request'
run: |
subatomic-cli upload --prune \
--server https://subatomic.fyralabs.com \
--token ${{ secrets.SUBATOMIC_TOKEN }} \
${{ matrix.version }} anda-build/rpm/rpms/*