Use matrix.install for the apt package

This commit is contained in:
Peter Dimov
2020-11-20 02:24:43 +02:00
parent 0c958a4abb
commit 063d55c558

View File

@@ -16,18 +16,22 @@ jobs:
- toolset: gcc-4.7
cxxstd: "03,11"
os: ubuntu-16.04
install: g++-4.7
- toolset: gcc-4.8
cxxstd: "03,11"
os: ubuntu-16.04
install: g++-4.8
- toolset: gcc-4.9
cxxstd: "03,11"
os: ubuntu-16.04
install: g++-4.9
- toolset: gcc-5
cxxstd: "03,11,14,1z"
os: ubuntu-16.04
- toolset: gcc-6
cxxstd: "03,11,14,1z"
os: ubuntu-16.04
install: g++-6
- toolset: gcc-7
cxxstd: "03,11,14,17"
os: ubuntu-18.04
@@ -58,7 +62,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup (POSIX)
- name: Install packages
if: matrix.install
run: sudo apt install ${{matrix.install}}
- name: Setup Boost (POSIX)
if: "!startsWith( matrix.os, 'windows-' )"
run: |
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
@@ -72,11 +80,7 @@ jobs:
./bootstrap.sh
./b2 -d0 headers
- name: Install GCC
if: "matrix.toolset == 'gcc-6' || startsWith( matrix.toolset, 'gcc-4.' )"
run: sudo apt install ${{matrix.toolset}}
- name: Setup (Windows)
- name: Setup Boost (Windows)
if: "startsWith( matrix.os, 'windows-' )"
shell: cmd
run: |