Skip to content

Commit 9f034c7

Browse files
committed
add repository
1 parent 7c60add commit 9f034c7

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ on:
77

88
jobs:
99
build:
10+
strategy:
11+
max-parallel: 1
12+
matrix:
13+
arch: [x86_64, x86_64-musl]
1014
runs-on: ubuntu-latest
15+
env:
16+
XBPS_PASSPHRASE: ${{ secrets.SIGN_PASS }}
17+
XBPS_TARGET_ARCH: ${{ matrix.arch }}
1118

1219
steps:
1320
- name: checkout librewolf-void
@@ -39,33 +46,33 @@ jobs:
3946
sudo rm -rf /usr/local/lib/android
4047
sudo rm -rf /opt/ghc
4148
sudo rm -rf /opt/hostedtoolcache/CodeQL
42-
sudo docker image prune --all --force
4349
44-
- name: building x86_64
50+
- name: build ${{ matrix.arch }}
4551
run: |
4652
export PATH="/opt/xbps/usr/bin/:$PATH"
4753
cd void-packages
48-
./xbps-src -m masterdir-x86_64 -A x86_64 binary-bootstrap
49-
./xbps-src pkg -j4 -m masterdir-x86_64 librewolf
50-
rm -rf masterdir-x86_64
54+
./xbps-src -m masterdir-${{ matrix.arch }} -A ${{ matrix.arch }} binary-bootstrap
55+
./xbps-src pkg -j4 -m masterdir-${{ matrix.arch }} librewolf
5156
52-
- name: building x86_64-musl
57+
- name: sign ${{ matrix.arch }}
58+
working-directory: void-packages/hostdir/binpkgs/
5359
run: |
5460
export PATH="/opt/xbps/usr/bin/:$PATH"
55-
cd void-packages
56-
./xbps-src -m masterdir-x86_64-musl -A x86_64-musl binary-bootstrap
57-
./xbps-src pkg -j4 -m masterdir-x86_64-musl librewolf
58-
rm -rf masterdir-x86_64-musl
61+
xbps-rindex -r $PWD
62+
xbps-rindex -s --signedby "index-0 <index@mailbox.org>" --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD
63+
xbps-rindex -S --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD/*.xbps
64+
xbps-rindex -c $PWD
5965
60-
- name: checksums
66+
- name: checksum ${{ matrix.arch }}
6167
working-directory: void-packages/hostdir/binpkgs/
6268
run: |
63-
sha256sum $(echo librewolf-*.x86_64.xbps) | tee $(echo librewolf-*.x86_64.xbps).sha256sum
64-
sha512sum $(echo librewolf-*.x86_64.xbps) | tee $(echo librewolf-*.x86_64.xbps).sha512sum
65-
sha256sum $(echo librewolf-*.x86_64-musl.xbps) | tee $(echo librewolf-*.x86_64-musl.xbps).sha256sum
66-
sha512sum $(echo librewolf-*.x86_64-musl.xbps) | tee $(echo librewolf-*.x86_64-musl.xbps).sha512sum
69+
sha256sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | tee $(echo librewolf-*.${{ matrix.arch }}.xbps).sha256sum
70+
sha512sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | tee $(echo librewolf-*.${{ matrix.arch }}.xbps).sha512sum
6771
6872
- name: release
6973
uses: softprops/action-gh-release@v1
7074
with:
71-
files: void-packages/hostdir/binpkgs/librewolf*
75+
files: |
76+
void-packages/hostdir/binpkgs/librewolf*
77+
void-packages/hostdir/binpkgs/*repodata
78+

0 commit comments

Comments
 (0)