CI: update cache and checkout to v4

This syncs the github actions for the MMU project with
the MK3 project
pull/316/head
Guðni Már Gilbert 2024-02-24 15:40:46 +00:00
parent 67e3a3c06c
commit cc5c425538
2 changed files with 9 additions and 9 deletions

View File

@ -20,21 +20,21 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout ${{ github.event.pull_request.head.ref }} - name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v4
if: ${{ github.event.pull_request }} if: ${{ github.event.pull_request }}
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
submodules: true submodules: true
- name: Checkout ${{ github.event.ref }} - name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v4
if: ${{ !github.event.pull_request }} if: ${{ !github.event.pull_request }}
with: with:
ref: ${{ github.event.ref }} ref: ${{ github.event.ref }}
submodules: true submodules: true
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3.0.11 uses: actions/cache@v4.0.0
id: cache-pkgs id: cache-pkgs
with: with:
path: ".dependencies" path: ".dependencies"
@ -77,21 +77,21 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout ${{ github.event.pull_request.head.ref }} - name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v4
if: ${{ github.event.pull_request }} if: ${{ github.event.pull_request }}
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
submodules: true submodules: true
- name: Checkout ${{ github.event.ref }} - name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v4
if: ${{ !github.event.pull_request }} if: ${{ !github.event.pull_request }}
with: with:
ref: ${{ github.event.ref }} ref: ${{ github.event.ref }}
submodules: true submodules: true
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3.0.11 uses: actions/cache@v4.0.0
id: cache-pkgs id: cache-pkgs
with: with:
path: ".dependencies" path: ".dependencies"

View File

@ -23,10 +23,10 @@ jobs:
# build the base branch # build the base branch
- name: Checkout base - name: Checkout base
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3.0.11 uses: actions/cache@v4.0.0
id: cache-pkgs id: cache-pkgs
with: with:
path: ".dependencies" path: ".dependencies"
@ -54,7 +54,7 @@ jobs:
# build the PR branch # build the PR branch
- name: Checkout PR - name: Checkout PR
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
clean: false clean: false
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}