Skip to content

Commit 4044b5f

Browse files
authored
Update ubuntu.yml
1 parent e98d725 commit 4044b5f

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/ubuntu.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,24 @@ jobs:
1414
run: |
1515
sudo apt-get update
1616
sudo apt-get install -y --no-install-recommends software-properties-common
17+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
1718
sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-focal
1819
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
20+
sudo apt-get install -y g++-10 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
2021
2122
- name: Install CMake
2223
run: |
2324
wget -qO- https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.24.0-ubuntu_focal-x86_64.tar.gz | sudo tar xzv -C/usr --strip-components=1
2425
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-
3526
- name: Build JSON library
3627
run: |
28+
export CXX=g++-10
3729
git clone https://github.com/nlohmann/json.git -b v3.11.2 --depth=1
3830
cd json
3931
mkdir build
4032
cd build
41-
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
42-
make -j "$(nproc --ignore=1)" install
33+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
34+
sudo make -j "$(nproc --ignore=1)" install
4335
cd ../..
4436
rm -rf json/
4537
@@ -49,9 +41,10 @@ jobs:
4941
5042
- name: Build project
5143
run: |
44+
export CXX=g++-10
5245
mkdir build
5346
cd build
54-
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
47+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
5548
make -j$(nproc)
5649
sudo make install
5750
cd ..

0 commit comments

Comments
 (0)