Skip to content

Commit

Permalink
CI: Update Github actions to fix errors & warnings
Browse files Browse the repository at this point in the history
Update Github actions to v4 for checkout and upload-artifact to fix the
following error:

```
This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`
```

Update microsoft/setup-msbuild actions to v2 to fix the following
warning:

```
The following actions uses node12 which is deprecated and will be forced to run on node16: microsoft/[email protected]
```
  • Loading branch information
chp-io committed Dec 13, 2024
1 parent 5531a0c commit 4a624c1
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/microv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
clang-format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
build-efi:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

Expand All @@ -70,7 +70,7 @@ jobs:
make
shell: bash

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_efi
path: |
Expand All @@ -79,7 +79,7 @@ jobs:
build-efi-debug:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

Expand All @@ -106,7 +106,7 @@ jobs:
make -j
shell: bash

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_efi_debug
path: |
Expand All @@ -115,7 +115,7 @@ jobs:
build-efi-noeth:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

Expand All @@ -139,7 +139,7 @@ jobs:
make
shell: bash

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_efi_noeth
path: |
Expand All @@ -148,13 +148,13 @@ jobs:
build-userpace:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

- name: Setup MSBuild (PATH)
id: setup_msbuild_path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Setup
run: |
Expand All @@ -176,7 +176,7 @@ jobs:
& msbuild /p:Configuration=Release /p:Platform=x64 /p:TargetVersion=Windows10 hypervisor.sln
shell: pwsh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_userspace
path: |
Expand All @@ -185,13 +185,13 @@ jobs:
build-userpace-debug:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

- name: Setup MSBuild (PATH)
id: setup_msbuild_path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Setup
run: |
Expand All @@ -213,7 +213,7 @@ jobs:
& msbuild /p:Configuration=Release /p:Platform=x64 /p:TargetVersion=Windows10 hypervisor.sln
shell: pwsh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_userspace_debug
path: |
Expand All @@ -222,13 +222,13 @@ jobs:
build-drivers:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

- name: Setup MSBuild (PATH)
id: setup_msbuild_path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Setup
run: |
Expand All @@ -249,7 +249,7 @@ jobs:
.\build-all.ps1 -RegisterBasedAbi
shell: pwsh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_drivers
path: |
Expand All @@ -271,13 +271,13 @@ jobs:
build-drivers-nocerts:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

- name: Setup MSBuild (PATH)
id: setup_msbuild_path
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Setup
run: |
Expand All @@ -302,7 +302,7 @@ jobs:
.\build-all.ps1 -RegisterBasedAbi
shell: pwsh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_drivers_nocerts
path: |
Expand Down

0 comments on commit 4a624c1

Please sign in to comment.