Skip to content

Commit

Permalink
update GitHub Actions to use actions/checkout@v4
Browse files Browse the repository at this point in the history
* Also enable manual trigger.
  • Loading branch information
pbatard committed Sep 5, 2023
1 parent b9adb76 commit 295ce89
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CodeQL

on:
workflow_dispatch:
branches: [master]
push:
branches: [master]
pull_request:
Expand All @@ -20,7 +22,7 @@ jobs:

steps:
- name: Check out repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -31,7 +33,7 @@ jobs:
languages: cpp

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v1.1

- name: Build UEFI bootloader
run: msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }},Platform=${{ env.TARGET_PLATFORM }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Coverity (MSVC with gnu-efi) build

on:
workflow_dispatch:
branches: [master]
push:
branches: [master]

Expand All @@ -16,7 +18,7 @@ jobs:

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -33,7 +35,7 @@ jobs:
run: echo "${{ github.workspace }}/cov-analysis-win64/bin" >> $GITHUB_PATH

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v1.1

- name: Build with Coverity
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Linux (gcc with EDK2) build

on: [push, pull_request]
on:
workflow_dispatch:
branches: [master]
push:
branches: [master]
tags:
- '**'
pull_request:
branches: [master]

env:
BUILD_TYPE: RELEASE
Expand Down Expand Up @@ -33,7 +41,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -71,7 +79,7 @@ jobs:
run: sha256sum *.efi

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: uefi-ntfs
path: ./*.efi
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Windows (MSVC with gnu-efi) build

on:
workflow_dispatch:
branches: [master]
push:
branches: [master]
pull_request:
Expand All @@ -20,13 +22,13 @@ jobs:

steps:
- name: Check out repository and submodules
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v1.1

- name: Build UEFI bootloader
run: |
Expand All @@ -37,7 +39,7 @@ jobs:
run: Get-FileHash *.efi

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: uefi-ntfs
path: ./*.efi

0 comments on commit 295ce89

Please sign in to comment.