Skip to content

Commit bf48977

Browse files
committed
ci: use job outputs to append patches
1 parent 056a909 commit bf48977

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/regression-tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
compiler: clang++
2424
- os: windows-latest
2525
compiler: cl.exe
26+
outputs:
27+
${{ matrix.compiler }}_patch: ${{ steps.outputs.patch }}
2628
steps:
2729
- name: Checkout repo
2830
uses: actions/checkout@v3
@@ -32,7 +34,6 @@ jobs:
3234
run: |
3335
cd regression-tests
3436
bash run-tests.sh -c ${{ matrix.compiler }}
35-
continue-on-error: true
3637
3738
- name: Run regression tests - Windows version
3839
if: matrix.os == 'windows-latest'
@@ -42,11 +43,21 @@ jobs:
4243
cd regression-tests && ^
4344
bash run-tests.sh -c ${{ matrix.compiler }}
4445
shell: cmd
45-
continue-on-error: true
4646

47+
patch:
48+
name: Patch
49+
runs-on: ubuntu-latest
50+
needs: regression-tests
51+
steps:
52+
- name: Append patches
53+
run: |
54+
echo "${{ needs.regression-tests.outputs.g++-10_patch }}" > patch.diff
55+
echo "${{ needs.regression-tests.outputs.g++-13_patch }}" >> patch.diff
56+
echo "${{ needs.regression-tests.outputs.clang++_patch }}" >> patch.diff
57+
echo "${{ needs.regression-tests.outputs.cl.exe_patch }}" >> patch.diff
4758
- name: Upload patch
4859
uses: actions/upload-artifact@v4
4960
with:
50-
name: ${{ matrix.compiler }}-patch.diff
51-
path: regression-tests/${{ matrix.compiler }}-patch.diff
61+
name: patch.diff
62+
path: patch.diff
5263
if-no-files-found: ignore

regression-tests/run-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ for test_file in $tests; do
251251
fi
252252
done
253253

254+
################
255+
# Output patch
256+
cat "$cxx_compiler-patch.diff" >> "$GITHUB_OUTPUT"
257+
254258
################
255259
# Report missing reference data directory
256260
if [[ ! -d "$exec_out_dir" ]]; then

0 commit comments

Comments
 (0)