CI: Bump old ubuntu version to ubuntu-18.04

The ubuntu-16.04 runners have been removed from GitHub Actions.
This commit is contained in:
Rémi Verschelde 2022-04-01 01:06:43 +02:00
parent efd26fbbff
commit 4e93604bc4

View File

@ -21,9 +21,8 @@ on:
branches: branches:
- 'release/**' - 'release/**'
# Use ubuntu-16.04 for the best compatibility. # Use ubuntu-18.04 for Linux for the best glibc compatibility.
# Use ubuntu-latest for the Windows builds because of outdated MinGW headers on ubuntu-16.04. # Use ubuntu-latest for other platforms.
# Use ubuntu-latest for the WASM runtime ("machine `wasm32' not recognized" on ubuntu-16.04)
env: env:
# Use SHA or tag instead of the branch for caching purposes. # Use SHA or tag instead of the branch for caching purposes.
@ -43,7 +42,7 @@ env:
jobs: jobs:
linux: linux:
name: Linux name: Linux
runs-on: ubuntu-16.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
target: [x86, x86_64] target: [x86, x86_64]
@ -412,7 +411,7 @@ jobs:
android: android:
name: Android name: Android
runs-on: ubuntu-16.04 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
target: [armeabi-v7a, arm64-v8a, x86, x86_64] target: [armeabi-v7a, arm64-v8a, x86, x86_64]
@ -491,7 +490,7 @@ jobs:
strategy: strategy:
matrix: matrix:
target: [cross-arm, cross-arm64, cross-x86, cross-x86_64, cross-arm-win, cross-arm64-win, cross-x86-win, cross-x86_64-win] target: [cross-arm, cross-arm64, cross-x86, cross-x86_64, cross-arm-win, cross-arm64-win, cross-x86-win, cross-x86_64-win]
os: [ubuntu-16.04, ubuntu-latest] os: [ubuntu-18.04, ubuntu-latest]
exclude: exclude:
- target: cross-arm - target: cross-arm
os: ubuntu-latest os: ubuntu-latest
@ -502,30 +501,30 @@ jobs:
- target: cross-x86_64 - target: cross-x86_64
os: ubuntu-latest os: ubuntu-latest
- target: cross-arm-win - target: cross-arm-win
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-arm64-win - target: cross-arm64-win
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-x86-win - target: cross-x86-win
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-x86_64-win - target: cross-x86_64-win
os: ubuntu-16.04 os: ubuntu-18.04
include: include:
- target: cross-arm - target: cross-arm
llvm: llvm64 llvm: llvm64
runtime_target: armeabi-v7a runtime_target: armeabi-v7a
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-arm64 - target: cross-arm64
llvm: llvm64 llvm: llvm64
runtime_target: arm64-v8a runtime_target: arm64-v8a
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-x86 - target: cross-x86
llvm: llvm64 llvm: llvm64
runtime_target: x86 runtime_target: x86
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-x86_64 - target: cross-x86_64
llvm: llvm64 llvm: llvm64
runtime_target: x86_64 runtime_target: x86_64
os: ubuntu-16.04 os: ubuntu-18.04
- target: cross-arm-win - target: cross-arm-win
llvm: llvmwin64 llvm: llvmwin64
runtime_target: armeabi-v7a runtime_target: armeabi-v7a
@ -709,11 +708,11 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-16.04, ubuntu-latest, macos-latest] os: [ubuntu-18.04, ubuntu-latest, macos-latest]
target: [llvm64, llvmwin64] target: [llvm64, llvmwin64]
exclude: exclude:
# Ubuntu 16.04 is only needed for the Linux build # Ubuntu 18.04 is only needed for the Linux build
- os: ubuntu-16.04 - os: ubuntu-18.04
target: llvmwin64 target: llvmwin64
# Ubuntu latest is only needed for the Windows build # Ubuntu latest is only needed for the Windows build
- os: ubuntu-latest - os: ubuntu-latest
@ -797,7 +796,7 @@ jobs:
bcl: bcl:
name: BCL name: BCL
runs-on: ubuntu-16.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
product: [desktop, desktop-win32, android, ios, wasm] product: [desktop, desktop-win32, android, ios, wasm]
@ -865,7 +864,7 @@ jobs:
if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/heads/release/') if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/heads/release/')
needs: [linux, windows, osx, ios, ios-cross, android, android-cross, wasm, bcl] needs: [linux, windows, osx, ios, ios-cross, android, android-cross, wasm, bcl]
name: Create Release name: Create Release
runs-on: ubuntu-16.04 runs-on: ubuntu-18.04
outputs: outputs:
release_upload_url: ${{ steps.create_release.outputs.upload_url }} release_upload_url: ${{ steps.create_release.outputs.upload_url }}
steps: steps:
@ -894,7 +893,7 @@ jobs:
if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/heads/release/') if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/heads/release/')
needs: create-release needs: create-release
name: Upload Release Artifacts name: Upload Release Artifacts
runs-on: ubuntu-16.04 runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
artifact_name: [linux-x86, linux-x86_64, windows-x86, windows-x86_64, osx-x86_64, artifact_name: [linux-x86, linux-x86_64, windows-x86, windows-x86_64, osx-x86_64,