-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.75 KB
/
pkgbuild.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
name: pkgbuild
on:
repository_dispatch:
types:
- rebase
workflow_dispatch:
push:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
version:
name: gather information
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: check out repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: version
uses: manjaro-contrib/action-pkgbuild-info@main
with:
arm-runs-on: ${{ vars.arm_runner }}
outputs:
runs-on: ${{ steps.version.outputs.runs-on }}
version: ${{ steps.version.outputs.version }}
branches: ${{ steps.version.outputs.branches }}
pkgbuild:
name: building version ${{ needs.version.outputs.version }} against ${{ matrix.branch }} on ${{ matrix.runs-on }}
needs: [version]
if: needs.version.outputs.branches != ''
continue-on-error: true
strategy:
matrix:
branch: ${{ fromJSON(needs.version.outputs.branches) }}
runs-on: ${{ fromJSON(needs.version.outputs.runs-on) }}
runs-on: ${{ matrix.runs-on }}
permissions:
contents: write
packages: write
container:
image: docker://manjarolinux/build:latest
steps:
- name: pkgbuild
uses: manjaro-contrib/action-makepkg@main
with:
branch: ${{ matrix.branch }}
release: ${{ matrix.branch }}-${{ needs.version.outputs.version }}
dispatch-target: ${{ vars.PACKAGES_REPO }}
dispatch-token: ${{ secrets.DISPATCH_TOKEN }}
gpg_secret_base64: ${{ secrets.gpg_secret_base64 }}
additional_gpg: ${{ vars.ADDITIONAL_GPG }}
additional_repo: ${{ vars.ADDITIONAL_REPO }}