Skip to content

Commit 776110d

Browse files
authored
ci: upload patches (#934)
1 parent 4952e0a commit 776110d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/regression-tests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: |
3333
cd regression-tests
3434
bash run-tests.sh -c ${{ matrix.compiler }}
35+
continue-on-error: true
3536

3637
- name: Run regression tests - Windows version
3738
if: matrix.os == 'windows-latest'
@@ -41,3 +42,10 @@ jobs:
4142
cd regression-tests && ^
4243
bash run-tests.sh -c ${{ matrix.compiler }}
4344
shell: cmd
45+
continue-on-error: true
46+
47+
- name: Upload patch
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: ${{ matrix.compiler }}-patch.diff
51+
path: regression-tests/${{ matrix.compiler }}-patch.diff

regression-tests/run-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ check_file () {
3232
# Add the file to the index to be able to diff it...
3333
git add "$file"
3434
# ... print the diff ...
35-
git --no-pager diff HEAD -- "$file"
35+
git --no-pager diff HEAD -- "$file" | tee -a "$cxx_compiler-patch.diff"
3636
# ... and remove the file from the diff
3737
git rm --cached -- "$file" > /dev/null 2>&1
3838

@@ -195,7 +195,7 @@ for test_file in $tests; do
195195
# The source is temporarily copied to avoid issues with bash paths in cl.exe
196196
(cd $exec_out_dir; \
197197
cp ../../$expected_src $generated_cpp_name;
198-
$compiler_cmd"$test_bin" \
198+
$compiler_cmd "$test_bin" \
199199
$generated_cpp_name \
200200
> $generated_cpp_name.output 2>&1)
201201
compilation_result=$?

0 commit comments

Comments
 (0)