forked from lucasmz1/Qemu_Appimage
-
Notifications
You must be signed in to change notification settings - Fork 0
291 lines (274 loc) · 9.36 KB
/
blank.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
# This is a basic workflow to help you get started with Actions
name: build q AppImage
# Controls when the action will run.
on:
# Build at 00:00 on every 12th day-of-month.
schedule:
- cron: "0 0 */6 * *"
# Triggers the workflow on push or pull request events but only for the master branch
push:
#branches: [ main,q ]
paths-ignore: [ '**/README.md' ]
pull_request:
#branches: [ main,q ]
paths-ignore: [ '**/README.md' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-stable"
build-stable:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-${{ hashFiles('**/apt-lock.txt') }}
- name: Prerequisites
run: |
echo $PATH
sudo apt-get update && sudo apt-get upgrade -y
sudo apt update --fix-missing
sudo apt-get install bash \
bison \
coreutils \
docutils-common \
flex \
genisoimage \
gettext \
git \
gnutls-bin \
grep \
jq \
libaio-dev \
libbluetooth-dev \
libbrlapi-dev \
libbz2-dev \
libcacard-dev \
libcap-ng-dev \
libcapstone-dev \
libcurl4-gnutls-dev \
libfdt-dev \
libglib2.0-dev \
libgnutls28-dev \
libgtk-3-dev \
libibverbs-dev \
libiscsi-dev \
libiscsi7 \
libjpeg8-dev \
liblzo2-dev \
libncurses5-dev \
libnfs* \
libnuma-dev \
libpciaccess-dev \
libpciaccess0 \
libpixman-1-0 \
libpixman-1-dev \
librbd-dev \
librdmacm-dev \
libsasl2-dev \
libsdl2-dev \
libseccomp-dev \
libslirp-dev \
libslirp0 \
libsnappy-dev \
libspice-protocol-dev \
libspice-server-dev \
libspice-server1 \
libssh-dev \
libusb* \
libvde-dev \
libvdeplug-dev \
libvirglrenderer-dev \
libvirglrenderer1 \
libvte-2.91-dev \
libxen-dev \
libxkbcommon-dev \
libxml2-dev \
libxml2-utils \
libyajl-dev \
libyajl2 \
libzstd-dev \
libzstd1 \
lsb-base \
ninja-build \
ovmf \
pip \
pkg-config \
procps \
python3-venv \
sed \
slirp* \
spice-client-gtk \
tss2 \
unzip \
usbutils \
valgrind \
virgl-server \
wget \
xdg-user-dirs \
xfslibs-dev \
xsltproc \
zlib1g-dev \
zsync
- name: linuxdeploy & appimagetool
run: |
wget -q "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" -O linuxdeploy ; chmod a+x linuxdeploy
wget -q "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" -O appimagetool ; chmod a+x appimagetool
- name: meson
run: |
sudo pip3 install meson
wget -c -q "https://download.gnome.org/sources/glib/2.80/glib-2.80.2.tar.xz"
tar -xf glib-2.80.2.tar.xz
cd glib-2.80.2
meson setup _build
meson compile -C _build
sudo meson install -C _build
- name: q
run: |
wget -q https://raw.githubusercontent.com/oSoWoSo/DistroHopper/all/q ; chmod a+x q
- name: gum
run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --batch --yes --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt-get update && sudo apt-get -y install gum
# needed directories
mkdir -p lucas/usr/lib/
mkdir -p lucas/usr/share/
cp -r /usr/share/mime/ lucas/usr/share/
- name: qemu
run: |
git clone https://gitlab.com/qemu-project/qemu.git
cd qemu
git submodule init
git submodule update --recursive
./configure --disable-docs \
--enable-alsa \
--enable-brlapi \
--enable-gio \
--enable-gnutls \
--enable-gtk \
--enable-gtk-clipboard \
--enable-guest-agent \
--enable-kvm \
--enable-libssh \
--enable-libudev \
--enable-libusb \
--enable-modules \
--enable-netmap \
--enable-nettle \
--enable-opengl \
--enable-pa \
--enable-pixman \
--enable-sdl \
--enable-slirp \
--enable-slirp-smbd \
--enable-smartcard \
--enable-spice \
--enable-spice-protocol \
--enable-system \
--enable-tpm \
--enable-usb-redir \
--enable-user \
--enable-vde \
--enable-vdi \
--enable-vduse-blk-export \
--enable-vhdx \
--enable-vhost-crypto \
--enable-vhost-kernel \
--enable-vhost-net \
--enable-vhost-user \
--enable-vhost-user-blk-server \
--enable-vhost-vdpa \
--enable-virglrenderer \
--enable-vmdk \
--enable-vnc \
--enable-vnc-jpeg \
--enable-vnc-sasl \
--enable-vpc \
--enable-vte \
--enable-vvfat \
--enable-xen \
--enable-zstd \
--target-list=x86_64-linux-user --prefix=${GITHUB_WORKSPACE}/lucas/usr/
make
make install
cd ${GITHUB_WORKSPACE}
- name: quickemu
run: |
#sudo add-apt-repository -y ppa:flexiondotorg/quickemu
#sudo apt-get update && sudo apt-get -y install quickemu
# DEPENDENCIES
#cpu-checker
#ipxe-qemu
#ipxe-qemu-256k-compat-efi-roms
#libpmem1
#libtpms0
#liburing1
#mesa-utils
#msr-tools
#qemu-block-extra
#qemu-efi-aarch64
#qemu-efi-arm
#qemu-system
#qemu-system-arm
#qemu-system-common
#qemu-system-data
#qemu-system-gui
#qemu-system-mips
#qemu-system-misc
#qemu-system-ppc
#qemu-system-s390x
#qemu-system-sparc
#qemu-system-x86
#qemu-utils
#quickemu
#seabios
#socat
#swtpm
#swtpm-libs
#x11-xserver-utils
#
sudo apt-get -y install cpu-checker \
ipxe-qemu \
ipxe-qemu-256k-compat-efi-roms \
mesa-utils \
msr-tools \
seabios \
socat \
x11-xserver-utils
wget -q https://raw.githubusercontent.com/quickemu-project/quickemu/master/quickget && chmod a+x quickget
wget -q https://raw.githubusercontent.com/quickemu-project/quickemu/master/quickemu && chmod a+x quickemu
wget -q https://raw.githubusercontent.com/quickemu-project/quickemu/master/quickreport && chmod a+x quickreport
wget -q https://raw.githubusercontent.com/quickemu-project/quickemu/master/chunkcheck && chmod a+x chunkcheck
- name: finalizing
run: |
find -iname 'AppRun' | xargs -i -t -exec cp {} /home/runner/work/Qemu_Appimage/Qemu_Appimage/lucas/
find -iname 'q.desktop' | xargs -i -t -exec cp {} /home/runner/work/Qemu_Appimage/Qemu_Appimage/lucas/
find -iname 'q_logo_no_text.svg' | xargs -i -t -exec cp {} /home/runner/work/Qemu_Appimage/Qemu_Appimage/lucas/
find -iname 'libunionpreload.so' | xargs -i -t -exec cp {} /home/runner/work/Qemu_Appimage/Qemu_Appimage/lucas/
# Runs a set of commands using the runners shell
- name: Build appimage
run: |
find -name 'linuxdeploy**' -type f -exec {} --appdir ${GITHUB_WORKSPACE}/lucas/ \;
cd ${GITHUB_WORKSPACE} && cp q.desktop lucas/ && find lucas/ -depth -iname 'libglib-2.0.so.0' -type f -delete
ARCH=x86_64 find -name 'appimagetool**' -type f -exec {} ${GITHUB_WORKSPACE}/lucas/ \;
- name: release
uses: "marvinpinto/action-automatic-releases@latest"
with:
title: Continuous build
automatic_release_tag: continuous-stable
prerelease: false
draft: false
files: /home/runner/work/Qemu_Appimage/Qemu_Appimage/*.AppImage*
repo_token: "${{ secrets.GITHUB_TOKEN }}"