Skip to content

Commit e5af739

Browse files
authored
Update ubuntu.yml
1 parent 6476679 commit e5af739

File tree

1 file changed

+39
-9
lines changed

1 file changed

+39
-9
lines changed

.github/workflows/ubuntu.yml

+39-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,50 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v2
1212

1313
- name: Install dependencies
1414
run: |
15-
sudo apt -y update
16-
sudo apt -y install wget git cmake g++ libcurl4-openssl-dev libx11-dev libz-dev libfuse-dev librsvg2-dev libssl-dev libinotifytools0-dev libarchive-dev liblzma-dev libboost-dev libargagg-dev
15+
sudo apt-get update
16+
sudo apt-get install -y --no-install-recommends software-properties-common
17+
sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-focal
18+
sudo apt-get update
19+
sudo apt-get install -y qt515base qt515wayland libgl1 libdrm-dev mesa-common-dev build-essential libssl-dev autoconf automake libtool wget vim-common desktop-file-utils pkgconf libgpgme-dev libglib2.0-dev libcairo2-dev librsvg2-dev libfuse-dev git libcurl4-openssl-dev argagg-dev libgcrypt20-dev libboost-dev
1720
18-
- name: Build AppImageUpdate
21+
- name: Install CMake
1922
run: |
20-
git clone --recursive https://github.com/AppImage/AppImageUpdate
21-
cd AppImageUpdate/
22-
mkdir build/
23-
cd build/
24-
cmake -DBUILD_QT_UI=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
23+
wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.24.0-ubuntu_focal-x86_64.tar.gz | tar xzv -C/usr --strip-components=1
24+
25+
- name: Copy pkgconfig files
26+
run: |
27+
cp pkgconfig/*.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
28+
29+
- name: Install GCC 10
30+
run: |
31+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
32+
sudo apt-get install -y g++-10
33+
export CXX=g++-10
34+
35+
- name: Build JSON library
36+
run: |
37+
git clone https://github.com/nlohmann/json.git -b v3.11.2 --depth=1
38+
cd json
39+
mkdir build
40+
cd build
41+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
42+
make -j "$(nproc --ignore=1)" install
43+
cd ../..
44+
rm -rf json/
45+
46+
- name: Remove libcurl.pc
47+
run: |
48+
rm /usr/lib/x86_64-linux-gnu/pkgconfig/libcurl.pc
49+
50+
- name: Build project
51+
run: |
52+
mkdir build
53+
cd build
54+
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
2555
make -j$(nproc)
2656
sudo make install
2757
cd ..

0 commit comments

Comments
 (0)