-
Notifications
You must be signed in to change notification settings - Fork 0
159 lines (133 loc) · 5.02 KB
/
build.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
name: Build and Release Hyprland Packages
on:
push:
tags:
- "*"
jobs:
build:
strategy:
max-parallel: 1
matrix:
# arch: [x86_64]
arch: [x86_64, x86_64-musl]
runs-on: ubuntu-latest
env:
XBPS_ALLOW_RESTRICTED: "yes"
XBPS_PASSPHRASE: ${{ secrets.SIGN_PASS }}
XBPS_TARGET_ARCH: ${{ matrix.arch }}
REPO_OWNER: "${{ github.repository_owner }}"
REPO_NAME: "${{ github.event.repository.name }}"
steps:
- name: checkout ${{ env.REPO_NAME }}
uses: actions/checkout@v4
with:
ref: main
path: ${{ env.REPO_NAME }}
- name: checkout void-packages
uses: actions/checkout@v4
with:
repository: void-linux/void-packages
ref: master
path: void-packages
- name: copy
run: |
cat ${{ env.REPO_NAME }}/common/shlibs >> void-packages/common/shlibs
cp -rv ${{ env.REPO_NAME }}/srcpkgs/* 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: set path
run: |
echo "/opt/xbps/usr/bin/" >> $GITHUB_PATH
- name: setup binray bootstrap
working-directory: void-packages
run: |
./xbps-src -m masterdir-${{ matrix.arch }} -A ${{ matrix.arch }} binary-bootstrap
- name: build tomlplusplus
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} tomlplusplus
- name: build sdbus-cpp
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} sdbus-cpp
- name: build hyprutils
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprutils
- name: build hyprlang
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprlang
- name: build hyprland
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprland
- name: build hyprland-protocols
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprland-protocols
- name: build xdg-desktop-portal-hyprland
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} xdg-desktop-portal-hyprland
- name: build hyprcursor
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprcursor
- name: build hyprwayland-scanner
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprwayland-scanner
- name: build hypridle
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hypridle
- name: build hyprlock
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprlock
- name: build hyprpaper
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} hyprpaper
- name: build swayosd
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} swayosd
- name: build rofi wayland
working-directory: void-packages
run: |
./xbps-src pkg -j$(nproc) -m masterdir-${{ matrix.arch }} rofi-wayland
- name: sign
working-directory: void-packages/hostdir/binpkgs/
run: |
ls -la
echo "${{ secrets.PRIV_KEY }}" > private.pem
xbps-rindex --privkey private.pem --sign --signedby "${{ env.REPO_NAME }}-github-action" $PWD
xbps-rindex --privkey private.pem --sign-pkg *.xbps
- name: checksum
working-directory: void-packages/hostdir/binpkgs/
run: |
for file in *.xbps; do
sha256sum "$file" | cut -d ' ' -f 1 > "${file}.sha256sum"
sha512sum "$file" | cut -d ' ' -f 1 > "${file}.sha512sum"
done
- name: release
uses: softprops/action-gh-release@v1
with:
files: |
void-packages/hostdir/binpkgs/*.xbps
void-packages/hostdir/binpkgs/*.sha256sum
void-packages/hostdir/binpkgs/*.sha512sum
void-packages/hostdir/binpkgs/*.sig2
void-packages/hostdir/binpkgs/*repodata