Skip to content

Commit 09cc5af

Browse files
authored
use common script to get dependecies in nightly and stable (#21)
1 parent ccb773b commit 09cc5af

File tree

3 files changed

+114
-192
lines changed

3 files changed

+114
-192
lines changed

.github/workflows/build-nightly.yml

Lines changed: 1 addition & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -36,102 +36,7 @@ jobs:
3636

3737
- name: Install dependencies
3838
if: always()
39-
run: |
40-
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
41-
pacman -Syu --noconfirm \
42-
aom \
43-
base-devel \
44-
boost \
45-
boost-libs \
46-
catch2 \
47-
clang \
48-
cmake \
49-
curl \
50-
dav1d \
51-
desktop-file-utils \
52-
doxygen \
53-
enet \
54-
ffmpeg \
55-
ffmpeg4.4 \
56-
fmt \
57-
gamemode \
58-
gcc13 \
59-
git \
60-
glslang \
61-
glu \
62-
haskell-gnutls \
63-
hidapi \
64-
libass \
65-
libdecor \
66-
libfdk-aac \
67-
libopusenc \
68-
libva \
69-
libvpx \
70-
libxi \
71-
libxkbcommon-x11 \
72-
libxss \
73-
libzip \
74-
mbedtls \
75-
mbedtls2 \
76-
mesa \
77-
meson \
78-
nasm \
79-
ninja \
80-
nlohmann-json \
81-
numactl \
82-
patchelf \
83-
pipewire-audio \
84-
pulseaudio \
85-
pulseaudio-alsa \
86-
python-pip \
87-
qt6-base \
88-
qt6ct \
89-
qt6-multimedia \
90-
qt6-tools \
91-
qt6-wayland \
92-
sdl2 \
93-
strace \
94-
svt-av1 \
95-
unzip \
96-
vulkan-headers \
97-
vulkan-nouveau \
98-
vulkan-radeon \
99-
wget \
100-
x264 \
101-
x265 \
102-
xcb-util-image \
103-
xcb-util-renderutil \
104-
xcb-util-wm \
105-
xorg-server-xvfb \
106-
zip \
107-
zsync
108-
109-
if [ "$(uname -m)" = 'x86_64' ]; then
110-
pacman -Syu --noconfirm vulkan-intel
111-
fi
112-
113-
- name: Install debloated llvm-libs
114-
run: |
115-
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-x86_64.pkg.tar.zst"
116-
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
117-
pacman -U --noconfirm ./llvm-libs.pkg.tar.zst
118-
rm -f ./llvm-libs.pkg.tar.zst
119-
120-
- name: Install iculess libxml2 and qt6-core
121-
run: |
122-
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-x86_64.pkg.tar.zst"
123-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-x86_64.pkg.tar.zst"
124-
wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst
125-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
126-
pacman -U --noconfirm ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
127-
rm -f ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
128-
129-
- name: Install ffmpeg mini
130-
run: |
131-
FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-x86_64.pkg.tar.zst"
132-
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini-x86_64.pkg.tar.zst
133-
pacman -U --noconfirm ./ffmpeg-mini-x86_64.pkg.tar.zst
134-
rm -f ./ffmpeg-mini-x86_64.pkg.tar.zst
39+
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
13540

13641
- name: Compile Citron (Normal)
13742
if: ${{ matrix.optimized == false }}

.github/workflows/build-stable.yml

Lines changed: 1 addition & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -36,102 +36,7 @@ jobs:
3636

3737
- name: Install dependencies
3838
if: always()
39-
run: |
40-
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
41-
pacman -Syu --noconfirm \
42-
aom \
43-
base-devel \
44-
boost \
45-
boost-libs \
46-
catch2 \
47-
clang \
48-
cmake \
49-
curl \
50-
dav1d \
51-
desktop-file-utils \
52-
doxygen \
53-
enet \
54-
ffmpeg \
55-
ffmpeg4.4 \
56-
fmt \
57-
gamemode \
58-
gcc13 \
59-
git \
60-
glslang \
61-
glu \
62-
haskell-gnutls \
63-
hidapi \
64-
libass \
65-
libdecor \
66-
libfdk-aac \
67-
libopusenc \
68-
libva \
69-
libvpx \
70-
libxi \
71-
libxkbcommon-x11 \
72-
libxss \
73-
libzip \
74-
mbedtls \
75-
mbedtls2 \
76-
mesa \
77-
meson \
78-
nasm \
79-
ninja \
80-
nlohmann-json \
81-
numactl \
82-
patchelf \
83-
pipewire-audio \
84-
pulseaudio \
85-
pulseaudio-alsa \
86-
python-pip \
87-
qt6-base \
88-
qt6ct \
89-
qt6-multimedia \
90-
qt6-tools \
91-
qt6-wayland \
92-
sdl2 \
93-
strace \
94-
svt-av1 \
95-
unzip \
96-
vulkan-headers \
97-
vulkan-nouveau \
98-
vulkan-radeon \
99-
wget \
100-
x264 \
101-
x265 \
102-
xcb-util-image \
103-
xcb-util-renderutil \
104-
xcb-util-wm \
105-
xorg-server-xvfb \
106-
zip \
107-
zsync
108-
109-
if [ "$(uname -m)" = 'x86_64' ]; then
110-
pacman -Syu --noconfirm vulkan-intel
111-
fi
112-
113-
- name: Install debloated llvm-libs
114-
run: |
115-
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-x86_64.pkg.tar.zst"
116-
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
117-
pacman -U --noconfirm ./llvm-libs.pkg.tar.zst
118-
rm -f ./llvm-libs.pkg.tar.zst
119-
120-
- name: Install iculess libxml2 and qt6-core
121-
run: |
122-
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-x86_64.pkg.tar.zst"
123-
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-x86_64.pkg.tar.zst"
124-
wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst
125-
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
126-
pacman -U --noconfirm ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
127-
rm -f ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
128-
129-
- name: Install ffmpeg mini
130-
run: |
131-
FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-x86_64.pkg.tar.zst"
132-
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini-x86_64.pkg.tar.zst
133-
pacman -U --noconfirm ./ffmpeg-mini-x86_64.pkg.tar.zst
134-
rm -f ./ffmpeg-mini-x86_64.pkg.tar.zst
39+
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
13540

13641
- name: Compile Citron (Normal)
13742
if: ${{ matrix.optimized == false }}

get-dependencies.sh

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
6+
7+
if [ "$(uname -m)" = 'x86_64' ]; then
8+
PKG_TYPE='x86_64.pkg.tar.zst'
9+
else
10+
PKG_TYPE='aarch64.pkg.tar.xz'
11+
fi
12+
13+
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-$PKG_TYPE"
14+
FFMPEG_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/ffmpeg-mini-$PKG_TYPE"
15+
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-$PKG_TYPE"
16+
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-$PKG_TYPE"
17+
18+
echo "Installing build dependencies..."
19+
echo "---------------------------------------------------------------"
20+
pacman -Syu --noconfirm \
21+
aom \
22+
base-devel \
23+
boost \
24+
boost-libs \
25+
catch2 \
26+
clang \
27+
cmake \
28+
curl \
29+
dav1d \
30+
desktop-file-utils \
31+
doxygen \
32+
enet \
33+
ffmpeg \
34+
ffmpeg4.4 \
35+
fmt \
36+
gamemode \
37+
gcc13 \
38+
git \
39+
glslang \
40+
glu \
41+
haskell-gnutls \
42+
hidapi \
43+
libass \
44+
libdecor \
45+
libfdk-aac \
46+
libopusenc \
47+
libva \
48+
libvpx \
49+
libxi \
50+
libxkbcommon-x11 \
51+
libxss \
52+
libzip \
53+
mbedtls \
54+
mbedtls2 \
55+
mesa \
56+
meson \
57+
nasm \
58+
ninja \
59+
nlohmann-json \
60+
numactl \
61+
patchelf \
62+
pipewire-audio \
63+
pulseaudio \
64+
pulseaudio-alsa \
65+
python-pip \
66+
qt6-base \
67+
qt6ct \
68+
qt6-multimedia \
69+
qt6-tools \
70+
qt6-wayland \
71+
sdl2 \
72+
strace \
73+
svt-av1 \
74+
unzip \
75+
vulkan-headers \
76+
vulkan-nouveau \
77+
vulkan-radeon \
78+
wget \
79+
x264 \
80+
x265 \
81+
xcb-util-image \
82+
xcb-util-renderutil \
83+
xcb-util-wm \
84+
xorg-server-xvfb \
85+
zip \
86+
zsync
87+
88+
if [ "$(uname -m)" = 'x86_64' ]; then
89+
pacman -Syu --noconfirm vulkan-intel
90+
fi
91+
92+
93+
echo "Installing debloated pckages..."
94+
echo "---------------------------------------------------------------"
95+
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
96+
wget --retry-connrefused --tries=30 "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst
97+
wget --retry-connrefused --tries=30 "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
98+
wget --retry-connrefused --tries=30 "$FFMPEG_URL" -O ./ffmpeg-mini-x86_64.pkg.tar.zst
99+
100+
pacman -U --noconfirm \
101+
./qt6-base-iculess.pkg.tar.zst \
102+
./libxml2-iculess.pkg.tar.zst \
103+
./ffmpeg-mini-x86_64.pkg.tar.zst \
104+
./llvm-libs.pkg.tar.zst
105+
106+
rm -f ./qt6-base-iculess.pkg.tar.zst \
107+
./libxml2-iculess.pkg.tar.zst \
108+
./ffmpeg-mini-x86_64.pkg.tar.zst \
109+
./llvm-libs.pkg.tar.zst
110+
111+
echo "All done!"
112+
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)