Skip to content

Commit

Permalink
ci: upload patches (hsutter#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP authored Jan 12, 2024
1 parent 4952e0a commit 776110d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run: |
cd regression-tests
bash run-tests.sh -c ${{ matrix.compiler }}
continue-on-error: true

- name: Run regression tests - Windows version
if: matrix.os == 'windows-latest'
Expand All @@ -41,3 +42,10 @@ jobs:
cd regression-tests && ^
bash run-tests.sh -c ${{ matrix.compiler }}
shell: cmd
continue-on-error: true

- name: Upload patch
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.compiler }}-patch.diff
path: regression-tests/${{ matrix.compiler }}-patch.diff
4 changes: 2 additions & 2 deletions regression-tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ check_file () {
# Add the file to the index to be able to diff it...
git add "$file"
# ... print the diff ...
git --no-pager diff HEAD -- "$file"
git --no-pager diff HEAD -- "$file" | tee -a "$cxx_compiler-patch.diff"
# ... and remove the file from the diff
git rm --cached -- "$file" > /dev/null 2>&1

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

0 comments on commit 776110d

Please sign in to comment.