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 20, 2024
1 parent 5f58673 commit 386f73b
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 @@ -16,7 +16,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 @@ -48,7 +48,7 @@ jobs:
build-efi:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: microv

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

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

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

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

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

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: microv_efi_noeth
path: |
Expand All @@ -147,13 +147,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 @@ -175,7 +175,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 @@ -184,13 +184,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 @@ -212,7 +212,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 @@ -221,13 +221,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 @@ -248,7 +248,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 @@ -270,13 +270,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 @@ -301,7 +301,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 386f73b

Please sign in to comment.