CI: Update cache and checkout to v4 (#1478)

- Updates `checkout` from v2 to v4
- Updates `cache` from v3 to v4

Reasons for change: 
- Checkout@v2 runs on node 12, which has been
[discontinued](https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/)
- Checkout@v3 runs on node 16 and has also reached its [end of
life](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/),
so skip it entirely.
- Cache@v3 runs on node 16 as well, so update to v4 for the same reason.

Testing: 
- Ensure CI passes
- Check that warnings regarding `checkout` and `cache` are gone
このコミットが含まれているのは:
shinra-electric 2024-05-04 10:33:58 +02:00 committed by GitHub
コミット 4f834bd506
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B5690EEEBB952194
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -90,7 +90,7 @@ jobs:
keychain-name: ares-macos-keychain keychain-name: ares-macos-keychain
keychain-password: ${{ secrets.MACOS_KEYCHAIN_PASSWORD }} keychain-password: ${{ secrets.MACOS_KEYCHAIN_PASSWORD }}
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install Windows Dependencies - name: Install Windows Dependencies
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
@ -111,7 +111,7 @@ jobs:
fi fi
- name: "macOS: recover MoltenVK cache" - name: "macOS: recover MoltenVK cache"
if: runner.os == 'macOS' if: runner.os == 'macOS'
uses: actions/cache@v3 uses: actions/cache@v4
env: env:
cache-name: moltenvk cache-name: moltenvk
with: with:
@ -193,7 +193,7 @@ jobs:
needs: needs:
- build - build
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
path: 'src' path: 'src'
- name: Download Artifacts - name: Download Artifacts