Skip to content

Commit

Permalink
Add Actions Complete Job (#15)
Browse files Browse the repository at this point in the history
These new jobs will be used to mark as Required for all PRs, so we know
everything works. This is much easier than manually adding every other
job.
  • Loading branch information
nibanks authored May 2, 2024
1 parent bd0294e commit fb8b326
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,10 @@ jobs:
plat: ${{ matrix.plat }}
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}

Complete:
name: Complete
needs: [build-windows, build-windows-kernel, build-ubuntu-cross-compile, build-ubuntu, build-darwin]
runs-on: ubuntu-latest
steps:
- run: echo "CI succeeded"
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ jobs:
fail-fast: false
matrix:
vec: [
{ config: "Debug", plat: "linux", os: "ubuntu-20.04", arch: "x64" },
{ config: "Release", plat: "linux", os: "ubuntu-20.04", arch: "x64" },
{ config: "Debug", plat: "linux", os: "ubuntu-22.04", arch: "x64" },
{ config: "Release", plat: "linux", os: "ubuntu-22.04", arch: "x64" },
{ config: "Debug", plat: "windows", os: "windows-2019", arch: "x64" },
{ config: "Debug", plat: "linux", os: "ubuntu-20.04", arch: "x64" },
{ config: "Release", plat: "linux", os: "ubuntu-20.04", arch: "x64" },
{ config: "Debug", plat: "linux", os: "ubuntu-22.04", arch: "x64" },
{ config: "Release", plat: "linux", os: "ubuntu-22.04", arch: "x64" },
{ config: "Debug", plat: "windows", os: "windows-2019", arch: "x64" },
{ config: "Release", plat: "windows", os: "windows-2019", arch: "x64" },
{ config: "Debug", plat: "windows", os: "windows-2022", arch: "x64" },
{ config: "Debug", plat: "windows", os: "windows-2022", arch: "x64" },
{ config: "Release", plat: "windows", os: "windows-2022", arch: "x64" }
]
runs-on: ${{ matrix.vec.os }}
Expand All @@ -104,8 +104,7 @@ jobs:
path: artifacts
- name: Fix permissions for Unix
if: matrix.vec.plat == 'linux' || matrix.vec.plat == 'macos'
run: |
sudo chmod -R 777 artifacts
run: sudo chmod -R 777 artifacts
- name: Prepare Machine
run: scripts/prepare-machine.ps1 -ForTest
shell: pwsh
Expand Down Expand Up @@ -133,7 +132,7 @@ jobs:
fail-fast: false
matrix:
vec: [
{ config: "Debug", plat: "winkernel", os: "windows-2022", arch: "x64" },
{ config: "Debug", plat: "winkernel", os: "windows-2022", arch: "x64" },
{ config: "Release", plat: "winkernel", os: "windows-2022", arch: "x64" }
]
runs-on: ${{ matrix.vec.os }}
Expand Down Expand Up @@ -163,3 +162,10 @@ jobs:
with:
name: BVT-Kernel-${{ matrix.vec.config }}-${{ matrix.vec.plat }}-${{ matrix.vec.os }}-${{ matrix.vec.arch }}
path: artifacts

Complete:
name: Complete
needs: [bvt, bvt-kernel]
runs-on: ubuntu-latest
steps:
- run: echo "CI succeeded"

0 comments on commit fb8b326

Please sign in to comment.