Default to Ubuntu 20.04 if OS is not specified

This makes the matrix more compact, as we don't need to specify the OS
for the majority of the field (all of them now, but we'll add builds
using "macos-N" later, so it will still be necessary for some of them),
and the builds more stable than using which the current latest Ubuntu
version is.
This commit is contained in:
Vadim Zeitlin 2021-09-30 17:00:24 +02:00
commit 5d9bbea510

View file

@ -15,7 +15,8 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
strategy: strategy:
matrix: matrix:
#SWIGJOBS: ["-j2"] #SWIGJOBS: ["-j2"]
@ -27,18 +28,14 @@ jobs:
# PY3,VER # PY3,VER
# SWIG_FEATURES # SWIG_FEATURES
include: include:
- os: ubuntu-latest - CPP11: 1
CPP11: 1
SWIGLANG: "" SWIGLANG: ""
- os: ubuntu-latest - CPP11: 1
CPP11: 1
SWIGLANG: python SWIGLANG: python
- os: ubuntu-latest - CPP11: 1
CPP11: 1
SWIGLANG: python SWIGLANG: python
PY3: 3 PY3: 3
- os: ubuntu-latest - CPP11: 1
CPP11: 1
SWIGLANG: tcl SWIGLANG: tcl
# let's run all of them, as opposed to aborting when one fails # let's run all of them, as opposed to aborting when one fails
fail-fast: false fail-fast: false
@ -50,7 +47,7 @@ jobs:
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1 uses: hendrikmuhs/ccache-action@v1
with: with:
key: ${{ matrix.os }}-${{ matrix.SWIGLANG }} key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.SWIGLANG }}
- name: configure - name: configure
shell: bash shell: bash
env: env: