Skip to content

Commit

Permalink
Check that each patch file is buildable (#1495)
Browse files Browse the repository at this point in the history
* Check that each patch file is buildable

* merge patch 5 and 3

* group outputs
  • Loading branch information
gdams authored Jan 16, 2025
1 parent ff8bb06 commit dddedbf
Show file tree
Hide file tree
Showing 11 changed files with 748 additions and 748 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/patch-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright (c) Microsoft Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# This job tests that each patch file is buildable (in numerical order)

name: "Patch Build"

on:
pull_request:
branches: [ microsoft/* ]

jobs:
build_patches:
name: Patches Build in Order
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: true

- name: Set mock git config name/email
run: |
git config --global user.email "[email protected]"
git config --global user.name "Joe Blogs"
- name: Build patches
run: |
for file in $(ls -v patches/*.patch); do
echo "::group::Building $file"
cd go
git am --whitespace=nowarn ../$file
cd src
bash make.bash
cd ../../
echo "::endgroup::"
done
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ on:
pull_request:
branches: [ microsoft/* ]

# Cancel existing runs if user makes another push.
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
check_patches:
name: Patches Apply Cleanly
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- run: pwsh eng/run.ps1 submodule-refresh -shallow
Loading

0 comments on commit dddedbf

Please sign in to comment.