-
Notifications
You must be signed in to change notification settings - Fork 145
306 lines (304 loc) · 10.7 KB
/
pkg.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
name: Nightly Packaging
on:
workflow_dispatch:
push:
branches:
- nightly
schedule:
- cron: '0 6 * * *'
jobs:
repo:
name: Update Repository Files
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.PKG_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PKG_GPG_PASSPHRASE }}
- uses: kielabokkie/ssh-key-and-known-hosts-action@v1
with:
ssh-private-key: ${{ secrets.WWW_SSH_KEY }}
ssh-host: www.thirdlaw.tech
- name: Upload artifacts
run: |
gpg --armor --output key.gpg --export ${{ steps.import_gpg.outputs.keyid }}
rsync -e ssh key.gpg tools-for-build/cando.sh tools-for-build/clasp.sh tools-for-build/deb-cando.sh tools-for-build/deb-clasp.sh tools-for-build/arch-cando.sh tools-for-build/arch-clasp.sh ${{ secrets.WWW_USERNAME }}@www.thirdlaw.tech:/usr/local/www/apache24/data/pkg/
jammy_clasp:
name: Build Jammy Clasp
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version
run: |
sudo apt-get update
sudo apt install -y sbcl
./tools-for-build/nightly-version-bump
rm -rf dependencies extensions src/lisp/kernel/contrib src/lisp/modules/asdf src/mps src/bdwgc src/libatomic_ops
- name: Build Ubuntu packages
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: --build=binary --build-profiles=nocando
docker-image: ubuntu:jammy
extra-build-deps: ca-certificates netbase
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: jammy_clasp
path: debian/artifacts/*.deb
jammy_cando:
name: Build Jammy Cando
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version
run: |
sudo apt-get update
sudo apt install -y sbcl
./tools-for-build/nightly-version-bump --extensions=cando,seqan-clasp
rm -rf dependencies extensions src/lisp/kernel/contrib src/lisp/modules/asdf src/mps src/bdwgc src/libatomic_ops
- name: Build Ubuntu packages
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: --build=binary --build-profiles=noclasp
docker-image: ubuntu:jammy
extra-build-deps: ca-certificates netbase
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: jammy_cando
path: debian/artifacts/*.deb
jammy_repo:
name: Update Jammy Repository
runs-on: ubuntu-latest
needs:
- jammy_clasp
- jammy_cando
steps:
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.PKG_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PKG_GPG_PASSPHRASE }}
- uses: kielabokkie/ssh-key-and-known-hosts-action@v1
with:
ssh-private-key: ${{ secrets.WWW_SSH_KEY }}
ssh-host: www.thirdlaw.tech
- uses: actions/download-artifact@v3
with:
name: jammy_clasp
path: jammy
- uses: actions/download-artifact@v3
with:
name: jammy_cando
path: jammy
- name: Generate Repository Index
run: |
cd jammy
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key ${{ steps.import_gpg.outputs.keyid }} -abs --output Release.gpg Release
gpg --default-key ${{ steps.import_gpg.outputs.keyid }} --clearsign --output InRelease Release
- name: Upload artifacts
run: |
rsync -e ssh --delete-after --recursive jammy ${{ secrets.WWW_USERNAME }}@www.thirdlaw.tech:/usr/local/www/apache24/data/pkg/
bookworm_clasp:
name: Build Bookworm Clasp
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version
run: |
sudo apt-get update
sudo apt install -y sbcl
./tools-for-build/nightly-version-bump
echo "(:skip-sync t)" > config.sexp
- name: Build Debian packages
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: --build=binary --build-profiles=nocando
docker-image: debian:bookworm
extra-build-deps: ca-certificates netbase g++-12
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: bookworm_clasp
path: debian/artifacts/*.deb
bookworm_cando:
name: Build Bookworm Cando
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version
run: |
sudo apt-get update
sudo apt install -y sbcl
./tools-for-build/nightly-version-bump --extensions=cando,seqan-clasp
echo "(:skip-sync t)" > config.sexp
- name: Build Debian packages
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: --build=binary --build-profiles=noclasp
docker-image: debian:bookworm
extra-build-deps: ca-certificates netbase g++-12
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: bookworm_cando
path: debian/artifacts/*.deb
bookworm_repo:
name: Update Bookworm Repository
runs-on: ubuntu-latest
needs:
- bookworm_clasp
- bookworm_cando
steps:
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.PKG_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PKG_GPG_PASSPHRASE }}
- uses: kielabokkie/ssh-key-and-known-hosts-action@v1
with:
ssh-private-key: ${{ secrets.WWW_SSH_KEY }}
ssh-host: www.thirdlaw.tech
- uses: actions/download-artifact@v3
with:
name: bookworm_clasp
path: bookworm
- uses: actions/download-artifact@v3
with:
name: bookworm_cando
path: bookworm
- name: Generate Repository Index
run: |
cd bookworm
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key ${{ steps.import_gpg.outputs.keyid }} -abs --output Release.gpg Release
gpg --default-key ${{ steps.import_gpg.outputs.keyid }} --clearsign --output InRelease Release
- name: Upload artifacts
run: |
rsync -e ssh --delete-after --recursive bookworm ${{ secrets.WWW_USERNAME }}@www.thirdlaw.tech:/usr/local/www/apache24/data/pkg/
arch_clasp:
name: Build Arch Clasp
runs-on: ubuntu-latest
container:
image: ghcr.io/yitzchak/archlinux-makepkg:latest
steps:
- name: Set permissions and update packages
run: |
sudo chown -R build: .
sudo chown -R build: /github/home
sudo pacman -Syu --noconfirm
- name: Build Arch packages
run: |
echo -e "${{ secrets.PKG_GPG_PRIVATE_KEY }}" | gpg --import --yes --batch
echo "allow-preset-passphrase" >~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
echo -e "${{ secrets.PKG_GPG_PASSPHRASE }}" | /usr/lib/gnupg/gpg-preset-passphrase --preset "${{ secrets.PKG_GPG_KEYGRIP }}"
wget -O PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=clasp-cl-git
sed -i "s/clasp\.git/clasp\.git#commit=${{ github.sha }}/g" PKGBUILD
makepkg --noconfirm --syncdeps --sign
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: arch_clasp
path: |
clasp*.zst
clasp*.sig
arch_cando:
name: Build Arch Cando
runs-on: ubuntu-latest
container:
image: ghcr.io/yitzchak/archlinux-makepkg:latest
steps:
- name: Set permissions and update packages
run: |
sudo chown -R build: .
sudo chown -R build: /github/home
sudo pacman -Syu --noconfirm
- name: Build Arch packages
run: |
echo -e "${{ secrets.PKG_GPG_PRIVATE_KEY }}" | gpg --import --yes --batch
echo "allow-preset-passphrase" >~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
echo -e "${{ secrets.PKG_GPG_PASSPHRASE }}" | /usr/lib/gnupg/gpg-preset-passphrase --preset "${{ secrets.PKG_GPG_KEYGRIP }}"
wget -O PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cando-git
sed -i "s/clasp\.git/clasp\.git#commit=${{ github.sha }}/g" PKGBUILD
makepkg --noconfirm --syncdeps --sign
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: arch_cando
path: |
cando*.zst
cando*.sig
arch_repo:
name: Update Arch Repository
runs-on: ubuntu-latest
container:
image: archlinux:latest
needs:
- arch_clasp
- arch_cando
steps:
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.PKG_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PKG_GPG_PASSPHRASE }}
- uses: actions/download-artifact@v3
with:
name: arch_clasp
path: arch
- uses: actions/download-artifact@v3
with:
name: arch_cando
path: arch
- name: Generate Repository Index
run: |
cd arch
repo-add --key ${{ steps.import_gpg.outputs.keyid }} --sign thirdlaw.db.tar.gz *.pkg.tar.zst
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: arch_repo
path: arch
arch_repo_upload:
name: Upload Arch Repository
runs-on: ubuntu-latest
needs:
- arch_repo
steps:
- uses: kielabokkie/ssh-key-and-known-hosts-action@v1
with:
ssh-private-key: ${{ secrets.WWW_SSH_KEY }}
ssh-host: www.thirdlaw.tech
- uses: actions/download-artifact@v3
with:
name: arch_repo
path: arch
- name: Upload artifacts
run: |
rsync -e ssh --delete-after --recursive arch ${{ secrets.WWW_USERNAME }}@www.thirdlaw.tech:/usr/local/www/apache24/data/pkg/