Check that each patch file is buildable #2
Workflow file for this run
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@v4 | |
with: | |
submodules: true | |
- run: | | |
for file in $(ls -v patches/*.patch); do | |
echo "Applying $file" | |
git am $file | |
echo "Building $file" | |
cd go/src | |
bash make.bash | |
cd ../../ | |
done |