99 - feature/**
1010
1111env :
12+ NET_RETRY_COUNT : 5
1213 UBSAN_OPTIONS : print_stacktrace=1
1314 B2_VARIANT : debug,release
1415 B2_LINK : shared,static
1516
1617jobs :
1718 CI :
19+ defaults :
20+ run :
21+ shell : bash
22+
1823 strategy :
24+ fail-fast : false
1925 matrix :
2026 include :
21- - { compiler: g++-4.4, cxxstd: '98,0x', os: ubuntu-16.04, install: yes }
22- - { compiler: g++-5, cxxstd: '03,11,14', os: ubuntu-16 .04, install: yes }
23- - { compiler: g++-6, cxxstd: '03,11,14,17', os: ubuntu-16 .04, install: yes }
27+ - { compiler: g++-4.4, cxxstd: '98,0x', os: ubuntu-20.04, container: 'ubuntu: 16.04' , install: yes }
28+ - { compiler: g++-5, cxxstd: '03,11,14', os: ubuntu-18 .04, install: yes }
29+ - { compiler: g++-6, cxxstd: '03,11,14,17', os: ubuntu-18 .04, install: yes }
2430 - { compiler: g++-7, cxxstd: '03,11,14,17', os: ubuntu-20.04, install: yes }
2531 - { compiler: g++-8, cxxstd: '03,11,14,17,2a', os: ubuntu-20.04, install: yes }
2632 - { compiler: g++-9, cxxstd: '03,11,14,17,2a', os: ubuntu-20.04, install: yes }
2733 - { compiler: g++-10, cxxstd: '03,11,14,17,2a', sanitize: yes, os: ubuntu-20.04, install: yes, linkflags: -fuse-ld=gold }
28- - { compiler: clang++-3.5, cxxstd: '03,11', os: ubuntu-16.04, install: yes }
29- - { compiler: clang++-6.0, cxxstd: '03,11', os: ubuntu-16 .04, install: yes }
34+ - { compiler: clang++-3.5, cxxstd: '03,11', os: ubuntu-20.04, container: 'ubuntu: 16.04' , install: yes }
35+ - { compiler: clang++-6.0, cxxstd: '03,11', os: ubuntu-18 .04, install: yes }
3036 - { compiler: clang++-7, cxxstd: '03,11', os: ubuntu-18.04, install: yes }
3137 - { compiler: clang++-8, cxxstd: '03,11,14', os: ubuntu-18.04, install: yes }
3238 - { compiler: clang++-9, cxxstd: '03,11,14', os: ubuntu-18.04, install: yes }
3743 - { compiler: g++-8, cxxstd: '03,11', coverage: yes, os: ubuntu-20.04, install: yes }
3844
3945 runs-on : ${{matrix.os}}
46+ container : ${{matrix.container}}
4047
4148 steps :
4249 - uses : actions/checkout@v2
@@ -49,13 +56,27 @@ jobs:
4956 - name : Install packages
5057 if : matrix.install
5158 run : |
59+ if [ -f "/etc/debian_version" ]; then
60+ echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
61+ export DEBIAN_FRONTEND=noninteractive
62+ fi
63+ # Install required stuff when using containers
64+ if [ -n "${{matrix.container}}" ]; then
65+ if [ -f "/etc/debian_version" ]; then
66+ apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
67+ apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y sudo software-properties-common build-essential g++ python
68+ add-apt-repository ppa:git-core/ppa # Need newer git
69+ fi
70+ fi
5271 if [[ "${{matrix.install}}" == "yes" ]]; then
5372 pkgs="${{matrix.compiler}}"
5473 pkgs="${pkgs/clang++-/clang-}"
5574 else
5675 pkgs="${{matrix.install}}"
5776 fi
58- sudo apt install $pkgs
77+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
78+ sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
79+ sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y git $pkgs
5980
6081 - name : Setup config vars
6182 run : |
0 commit comments