Check that each patch file is buildable #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
- run: | | |
for file in $(ls -v patches/*.patch); do | |
echo "::group::Processing $file" | |
cd go | |
git am --whitespace=nowarn ../$file | |
echo "Building $file" | |
cd src | |
bash make.bash | |
cd ../../ | |
echo "::endgroup::" | |
done |