summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorVadim Zeitlin <vz-swig@zeitlins.org>2021-09-30 17:00:24 +0200
committerVadim Zeitlin <vz-swig@zeitlins.org>2021-09-30 17:00:24 +0200
commit5d9bbea51041b9a70a8fc9d91f1faeb5d58b0772 (patch)
tree4c44221f82e68e4a30e91e72d03eccf206184687 /.github/workflows/ci.yml
parent067d927cb188bad8003a5d68b9a03d86f4b3b264 (diff)
downloadswig-5d9bbea51041b9a70a8fc9d91f1faeb5d58b0772.tar.gz
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.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 7 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5d2ddbedd..562023f8e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,8 @@ on:
jobs:
build:
- runs-on: ${{ matrix.os }}
+ runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
+
strategy:
matrix:
#SWIGJOBS: ["-j2"]
@@ -27,18 +28,14 @@ jobs:
# PY3,VER
# SWIG_FEATURES
include:
- - os: ubuntu-latest
- CPP11: 1
+ - CPP11: 1
SWIGLANG: ""
- - os: ubuntu-latest
- CPP11: 1
+ - CPP11: 1
SWIGLANG: python
- - os: ubuntu-latest
- CPP11: 1
+ - CPP11: 1
SWIGLANG: python
PY3: 3
- - os: ubuntu-latest
- CPP11: 1
+ - CPP11: 1
SWIGLANG: tcl
# let's run all of them, as opposed to aborting when one fails
fail-fast: false
@@ -50,7 +47,7 @@ jobs:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
- key: ${{ matrix.os }}-${{ matrix.SWIGLANG }}
+ key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.SWIGLANG }}
- name: configure
shell: bash
env: