Fix CI for Ubuntu and MacOS (#1388)

Seems like ubuntu-18.04 and macos-10.15 are no longer hosted by GitHub. Switching to ubuntu-latest (at the time of writing: 22.04) and macos-latest (at the time of writing 12) works.

[GitHub hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
pull/1389/head
Yusuf Yavuzyigit 2023-08-08 18:28:32 +03:00 committed by GitHub
parent 0e2fd2e6d9
commit 95b00bd888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -12,14 +12,16 @@ jobs:
cancel_previous_runs: cancel_previous_runs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Cancel Previous Runs name: Cancel Previous Runs
permissions:
actions: write
steps: steps:
- uses: styfle/cancel-workflow-action@0.8.0 - uses: styfle/cancel-workflow-action@0.9.1
with: with:
access_token: ${{ github.token }} access_token: ${{ github.token }}
test_ubuntu: test_ubuntu:
needs: [cancel_previous_runs] needs: [cancel_previous_runs]
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
name: Test Ubuntu name: Test Ubuntu
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -43,7 +45,7 @@ jobs:
test_macos: test_macos:
needs: [cancel_previous_runs] needs: [cancel_previous_runs]
runs-on: macos-10.15 runs-on: macos-latest
name: Test macOS name: Test macOS
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -91,7 +93,7 @@ jobs:
build_release_macos: build_release_macos:
needs: [test_ubuntu, test_windows, test_macos] needs: [test_ubuntu, test_windows, test_macos]
name: Build Release macOS name: Build Release macOS
runs-on: macos-10.15 runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Dependencies - name: Install Dependencies