Install GCC if needed

This commit is contained in:
Peter Dimov
2020-11-20 02:04:26 +02:00
parent 3bc9bf61e0
commit e049827cb8

View File

@@ -13,6 +13,15 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- toolset: gcc-4.7
cxxstd: "03,11"
os: ubuntu-16.04
- toolset: gcc-4.8
cxxstd: "03,11"
os: ubuntu-16.04
- toolset: gcc-4.9
cxxstd: "03,11"
os: ubuntu-16.04
- toolset: gcc-5 - toolset: gcc-5
cxxstd: "03,11,14,1z" cxxstd: "03,11,14,1z"
os: ubuntu-16.04 os: ubuntu-16.04
@@ -49,7 +58,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup - name: Setup (POSIX)
if: "!startsWith( matrix.os, 'windows-' )" if: "!startsWith( matrix.os, 'windows-' )"
run: | run: |
REF=${GITHUB_BASE_REF:-$GITHUB_REF} REF=${GITHUB_BASE_REF:-$GITHUB_REF}
@@ -63,6 +72,10 @@ jobs:
./bootstrap.sh ./bootstrap.sh
./b2 -d0 headers ./b2 -d0 headers
- name: Install GCC
if: "matrix.toolset == 'gcc-6' || startsWith( matrix.toolset, 'gcc-4.' )"
run: apt install ${{matrix.toolset}}
- name: Setup (Windows) - name: Setup (Windows)
if: "startsWith( matrix.os, 'windows-' )" if: "startsWith( matrix.os, 'windows-' )"
shell: cmd shell: cmd