-
Notifications
You must be signed in to change notification settings - Fork 4
78 lines (66 loc) · 2.38 KB
/
main.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
name: build
on:
push:
tags:
- '*'
jobs:
build:
strategy:
max-parallel: 1
matrix:
arch: [x86_64, x86_64-musl]
runs-on: ubuntu-latest
env:
XBPS_PASSPHRASE: ${{ secrets.SIGN_PASS }}
XBPS_TARGET_ARCH: ${{ matrix.arch }}
steps:
- name: checkout librewolf-void
uses: actions/checkout@v4
with:
ref: master
path: librewolf
- name: checkout void-packages
uses: actions/checkout@v4
with:
repository: void-linux/void-packages
ref: master
path: void-packages
- name: copy
run: cp -rv librewolf/srcpkgs/librewolf void-packages/srcpkgs
- name: prepare xbps-static
run: |
mkdir -p /opt/xbps
curl -LO http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /opt/xbps
rm xbps-static-latest.x86_64-musl.tar.xz
- name: free space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
- name: build
run: |
export PATH="/opt/xbps/usr/bin/:$PATH"
cd void-packages
./xbps-src -m masterdir-${{ matrix.arch }} -A ${{ matrix.arch }} binary-bootstrap
./xbps-src pkg -j4 -m masterdir-${{ matrix.arch }} librewolf
- name: sign
working-directory: void-packages/hostdir/binpkgs/
run: |
export PATH="/opt/xbps/usr/bin/:$PATH"
xbps-rindex -r $PWD
xbps-rindex -s --signedby "index-0 <[email protected]>" --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD
xbps-rindex -S --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD/*.xbps
xbps-rindex -c $PWD
- name: checksum
working-directory: void-packages/hostdir/binpkgs/
run: |
sha256sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | tee $(echo librewolf-*.${{ matrix.arch }}.xbps).sha256sum
sha512sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | tee $(echo librewolf-*.${{ matrix.arch }}.xbps).sha512sum
- name: release
uses: softprops/action-gh-release@v1
with:
files: |
void-packages/hostdir/binpkgs/librewolf*
void-packages/hostdir/binpkgs/*repodata