Fix Github action environment version

This commit is contained in:
klzgrad 2022-02-20 12:02:54 +08:00
parent 64500beb7c
commit ccb2759224

View File

@ -16,7 +16,7 @@ env:
SCCACHE_CACHE_SIZE: 200M SCCACHE_CACHE_SIZE: 200M
jobs: jobs:
cache-toolchains-posix: cache-toolchains-posix:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache toolchains (Linux, OpenWrt, Android) - name: Cache toolchains (Linux, OpenWrt, Android)
@ -44,7 +44,7 @@ jobs:
- run: ./get-clang.sh - run: ./get-clang.sh
- run: EXTRA_FLAGS='target_os="android"' ./get-clang.sh - run: EXTRA_FLAGS='target_os="android"' ./get-clang.sh
cache-toolchains-win: cache-toolchains-win:
runs-on: windows-latest runs-on: windows-2019
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache toolchains - name: Cache toolchains
@ -74,7 +74,7 @@ jobs:
unzip ninja-win.zip -d ~/bin unzip ninja-win.zip -d ~/bin
fi fi
cache-toolchains-mac: cache-toolchains-mac:
runs-on: macos-latest runs-on: macos-11
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v2 - uses: actions/cache@v2
@ -88,7 +88,7 @@ jobs:
- run: ./get-clang.sh - run: ./get-clang.sh
linux: linux:
needs: cache-toolchains-posix needs: cache-toolchains-posix
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -151,7 +151,7 @@ jobs:
path: src/sha256sum.txt path: src/sha256sum.txt
android: android:
needs: cache-toolchains-posix needs: cache-toolchains-posix
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -221,7 +221,7 @@ jobs:
path: src/sha256sum.txt path: src/sha256sum.txt
win: win:
needs: cache-toolchains-win needs: cache-toolchains-win
runs-on: windows-latest runs-on: windows-2019
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -286,7 +286,7 @@ jobs:
path: src/sha256sum.txt path: src/sha256sum.txt
mac: mac:
needs: cache-toolchains-mac needs: cache-toolchains-mac
runs-on: macos-latest runs-on: macos-11
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -340,7 +340,7 @@ jobs:
path: src/sha256sum.txt path: src/sha256sum.txt
openwrt: openwrt:
needs: cache-toolchains-posix needs: cache-toolchains-posix
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix: