Replace deprecated macOS runner

See https://github.com/actions/runner-images/issues/5583

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2022-08-17 20:23:37 +02:00
parent 21a01dd3bc
commit ad5a1b851d

View file

@ -42,12 +42,12 @@ jobs:
- name: "Ubuntu 20.04"
runner: ubuntu-latest
container: ubuntu2004
- name: "macOS 10.15"
runner: macos-10.15
container: osx
#- name: "macOS 11"
# runner: macos-11
# container: osx
- name: "macOS 11"
runner: macos-11
container: osx-11
- name: "macOS 12"
runner: macos-12
container: osx-12
runs-on: ${{ matrix.runner }}
continue-on-error: ${{ matrix.continue-on-error == true }}
steps:
@ -59,9 +59,9 @@ jobs:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTAINER: ${{ matrix.container }}
run: if [[ ${CONTAINER} != "osx" ]]; then docker-compose build test-${CONTAINER} ; fi
run: if [[ !( "${CONTAINER}" =~ osx-* ) ]] ; then docker-compose build "test-${CONTAINER}" ; fi
- name: Test ${{ matrix.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTAINER: ${{ matrix.container }}
run: if [[ ${CONTAINER} != "osx" ]]; then docker-compose run test-${CONTAINER}; else bash test/scripts/test_osx.sh ; fi
run: if [[ "${CONTAINER}" =~ osx-* ]]; then docker-compose run "test-${CONTAINER}" ; else bash test/scripts/test_osx.sh ; fi