forked from yshui/picom
-
Notifications
You must be signed in to change notification settings - Fork 0
144 lines (129 loc) · 4.54 KB
/
publish-testing.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: Publish to Testing
on:
push:
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
matrix-builder:
runs-on: ubuntu-24.04
outputs:
includes: ${{ steps.builder.outputs.includes }}
runners: ${{ steps.builder.outputs.runners }}
steps:
- name: Build Matrix
id: builder
uses: regolith-linux/actions/build-matrix@main
with:
name: "${{ github.event.repository.name }}"
ref: "${{ github.ref_name }}"
arch: "amd64 arm64"
stage: "testing"
build:
runs-on: ${{ fromJSON(needs.matrix-builder.outputs.runners)[matrix.arch] }}
needs: matrix-builder
container: "ghcr.io/regolith-linux/ci-${{ matrix.distro }}:${{ matrix.codename }}-${{ matrix.arch }}"
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.matrix-builder.outputs.includes) }}
env:
server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
server-username: "${{ secrets.KAMATERA_USERNAME }}"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import GPG Key
uses: regolith-linux/actions/import-gpg@main
with:
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"
- name: Build Package
id: build
uses: regolith-linux/actions/build-package@main
with:
name: "${{ github.event.repository.name }}"
distro: "${{ matrix.distro }}"
codename: "${{ matrix.codename }}"
stage: "testing"
suite: "testing"
component: "main"
arch: "${{ matrix.arch }}"
- name: Setup SSH
uses: regolith-linux/actions/setup-ssh@main
with:
ssh-host: "${{ env.server-address }}"
ssh-key: "${{ secrets.KAMATERA_SSH_KEY }}"
- name: Upload Package
uses: regolith-linux/actions/upload-files@main
with:
upload-to-folder: "${{ github.event.repository.name }}"
- name: Upload SourceLog
uses: regolith-linux/actions/upload-files@main
with:
upload-from: "${{ steps.build.outputs.buildlog-path }}"
upload-pattern: "SOURCELOG_*.txt"
upload-to-base: "/opt/archives/workspace/"
upload-to-folder: "${{ github.event.repository.name }}"
sources:
runs-on: ubuntu-24.04
needs: build
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
if: ${{ !failure() && !cancelled() }}
env:
server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
server-username: "${{ secrets.KAMATERA_USERNAME }}"
steps:
- name: Import GPG Key
uses: regolith-linux/actions/import-gpg@main
with:
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"
- name: Setup SSH
uses: regolith-linux/actions/setup-ssh@main
with:
ssh-host: "${{ env.server-address }}"
ssh-key: "${{ secrets.KAMATERA_SSH_KEY }}"
- name: Rebuild Sources
uses: regolith-linux/actions/rebuild-sources@main
with:
workspace-subfolder: "${{ github.event.repository.name }}"
only-component: "testing"
only-package: "${{ github.event.repository.name }}"
publish:
runs-on: ubuntu-24.04
needs: sources
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
if: ${{ !failure() && !cancelled() }}
env:
server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
server-username: "${{ secrets.KAMATERA_USERNAME }}"
steps:
- name: Setup SSH
uses: regolith-linux/actions/setup-ssh@main
with:
ssh-host: "${{ env.server-address }}"
ssh-key: "${{ secrets.KAMATERA_SSH_KEY }}"
- name: Publish Repo
uses: regolith-linux/actions/publish-repo@main
with:
packages-path-subfolder: "${{ github.event.repository.name }}"
only-component: "testing"
manifests:
runs-on: ubuntu-24.04
needs: [matrix-builder, publish]
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
if: ${{ !failure() && !cancelled() }}
steps:
- name: Update Manifests
uses: regolith-linux/actions/update-manifest@main
env:
GITHUB_TOKEN: ${{ secrets.ORG_BROADCAST_TOKEN2 }}
with:
name: "${{ github.event.repository.name }}"
repo: "${{ github.server_url }}/${{ github.repository }}.git"
ref: "${{ github.ref_name }}"
sha: "${{ github.sha }}"
matrix: "${{ needs.matrix-builder.outputs.includes }}"
suite: "testing"
component: "main"