-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (32 loc) · 1 KB
/
patch-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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