Skip to content

Commit 77c0fc0

Browse files
committed
Switch to supported ubuntu image
1 parent 9212ff6 commit 77c0fc0

File tree

1 file changed

+48
-33
lines changed

1 file changed

+48
-33
lines changed

.github/workflows/linux.yml

+48-33
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,46 @@ permissions:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
13-
cxx: [g++-4.9, g++-10, clang++-9]
13+
cxx: [g++-4.9, g++-11, clang++-11]
1414
build_type: [Debug, Release]
1515
std: [11]
1616
shared: [""]
1717
include:
1818
- cxx: g++-4.9
19-
install: sudo apt install g++-4.9
20-
- cxx: g++-8
19+
- cxx: g++-11
2120
build_type: Debug
2221
std: 14
23-
install: sudo apt install g++-8
24-
- cxx: g++-8
25-
build_type: Debug
26-
std: 17
27-
install: sudo apt install g++-8
28-
- cxx: g++-9
29-
build_type: Debug
30-
std: 17
31-
- cxx: g++-10
22+
install: sudo apt install g++-11
23+
- cxx: g++-11
3224
build_type: Debug
3325
std: 17
3426
- cxx: g++-11
3527
build_type: Debug
3628
std: 20
3729
install: sudo apt install g++-11
38-
- cxx: clang++-8
30+
- cxx: clang++-11
3931
build_type: Debug
4032
std: 17
4133
cxxflags: -stdlib=libc++
42-
install: sudo apt install clang-8 libc++-8-dev libc++abi-8-dev
43-
- cxx: clang++-9
44-
install: sudo apt install clang-9
45-
- cxx: clang++-9
46-
build_type: Debug
47-
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
48-
std: 17
49-
install: sudo apt install clang-9
34+
install: sudo apt install clang-11 libc++-11-dev libc++abi-11-dev
5035
- cxx: clang++-11
51-
build_type: Debug
52-
std: 20
36+
install: sudo apt install clang-11
5337
- cxx: clang++-11
5438
build_type: Debug
55-
std: 20
56-
cxxflags: -stdlib=libc++
57-
install: sudo apt install libc++-11-dev libc++abi-11-dev
39+
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
40+
std: 17
41+
install: sudo apt install clang-11
42+
#- cxx: clang++-13
43+
# build_type: Debug
44+
# std: 20
45+
#- cxx: clang++-13
46+
# build_type: Debug
47+
# std: 20
48+
# cxxflags: -stdlib=libc++
49+
# install: sudo apt install libc++-13-dev libc++abi-13-dev
5850
- cxx: g++-13
5951
build_type: Release
6052
std: 23
@@ -67,11 +59,34 @@ jobs:
6759
- name: Set timezone
6860
run: sudo timedatectl set-timezone 'Asia/Yekaterinburg'
6961

70-
- name: Add repositories for older GCC
62+
- name: Install GCC 4.9
7163
run: |
72-
# Below repo provides GCC 4.9.
73-
sudo apt-add-repository 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
74-
sudo apt-add-repository 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
64+
sudo apt update
65+
sudo apt install libatomic1 libc6-dev libgomp1 libitm1 libmpc3
66+
# https://launchpad.net/ubuntu/xenial/amd64/g++-4.9/4.9.3-13ubuntu2
67+
wget --no-verbose \
68+
http://launchpadlibrarian.net/230069137/libmpfr4_3.1.3-2_amd64.deb \
69+
http://launchpadlibrarian.net/253728314/gcc-4.9-base_4.9.3-13ubuntu2_amd64.deb \
70+
http://launchpadlibrarian.net/445345919/gcc-5-base_5.4.0-6ubuntu1~16.04.12_amd64.deb \
71+
http://launchpadlibrarian.net/253728399/cpp-4.9_4.9.3-13ubuntu2_amd64.deb \
72+
http://launchpadlibrarian.net/253728424/libasan1_4.9.3-13ubuntu2_amd64.deb \
73+
http://launchpadlibrarian.net/445346135/libubsan0_5.4.0-6ubuntu1~16.04.12_amd64.deb \
74+
http://launchpadlibrarian.net/445346112/libcilkrts5_5.4.0-6ubuntu1~16.04.12_amd64.deb \
75+
http://launchpadlibrarian.net/253728426/libgcc-4.9-dev_4.9.3-13ubuntu2_amd64.deb \
76+
http://launchpadlibrarian.net/253728404/gcc-4.9_4.9.3-13ubuntu2_amd64.deb \
77+
http://launchpadlibrarian.net/253728432/libstdc++-4.9-dev_4.9.3-13ubuntu2_amd64.deb \
78+
http://launchpadlibrarian.net/253728401/g++-4.9_4.9.3-13ubuntu2_amd64.deb
79+
sudo dpkg -i libmpfr4_3.1.3-2_amd64.deb \
80+
gcc-4.9-base_4.9.3-13ubuntu2_amd64.deb \
81+
gcc-5-base_5.4.0-6ubuntu1~16.04.12_amd64.deb \
82+
cpp-4.9_4.9.3-13ubuntu2_amd64.deb \
83+
libasan1_4.9.3-13ubuntu2_amd64.deb \
84+
libubsan0_5.4.0-6ubuntu1~16.04.12_amd64.deb \
85+
libcilkrts5_5.4.0-6ubuntu1~16.04.12_amd64.deb \
86+
libgcc-4.9-dev_4.9.3-13ubuntu2_amd64.deb \
87+
gcc-4.9_4.9.3-13ubuntu2_amd64.deb \
88+
libstdc++-4.9-dev_4.9.3-13ubuntu2_amd64.deb \
89+
g++-4.9_4.9.3-13ubuntu2_amd64.deb
7590
if: ${{ matrix.cxx == 'g++-4.9' }}
7691

7792
- name: Add repositories for newer GCC
@@ -81,15 +96,15 @@ jobs:
8196

8297
- name: Add Ubuntu mirrors
8398
run: |
84-
# Github Actions caching proxy is at times unreliable
99+
# GitHub Actions caching proxy is at times unreliable
85100
# see https://github.com/actions/runner-images/issues/7048
86101
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
87102
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
88103
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
89104
90105
- name: Create Build Environment
91106
run: |
92-
sudo apt update
107+
sudo apt update --allow-unauthenticated
93108
${{matrix.install}}
94109
sudo apt install locales-all
95110
cmake -E make_directory ${{runner.workspace}}/build

0 commit comments

Comments
 (0)