Skip to content

Commit

Permalink
Improve error handling in GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jan 5, 2025
1 parent bec12ad commit 49d5140
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/actions/test_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ runs:
env:
ASAN_OPTIONS: alloc_dealloc_mismatch=0
run: |
${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests
${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public
[ -f ${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public-cpp20 ] && ${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public-cpp20
${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests && ${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public && [ -f ${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public-cpp20 ] && ${{ github.workspace }}/bin/${{ inputs.arch }}/bit7z-tests-public-cpp20
- name: Test bit7z (Windows)
if: runner.os == 'Windows'
Expand All @@ -132,6 +130,4 @@ runs:
env:
ASAN_OPTIONS: alloc_dealloc_mismatch=0
run: |
${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests.exe
${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public.exe
if exist ${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public-cpp20.exe ${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public-cpp20.exe
${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests.exe && ${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public.exe && (if exist ${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public-cpp20.exe ${{ github.workspace }}\bin\${{ inputs.arch }}\${{ inputs.build_type }}\bit7z-tests-public-cpp20.exe)

0 comments on commit 49d5140

Please sign in to comment.