Skip to content

Commit

Permalink
[ACTIONS] fix: Properly handle running executables
Browse files Browse the repository at this point in the history
  • Loading branch information
maj113 authored Apr 22, 2024
1 parent 3bdf829 commit 8fb654d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ jobs:
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Run benchmark_counter
run: ${{ steps.strings.outputs.build-output-dir }}/benchmark_counter
- name: Run Executables
if: matrix.os == 'windows-latest'
run: |
"${{ steps.strings.outputs.build-output-dir }}/verify/${{ matrix.build_type }}/verify_counter.exe"
"${{ steps.strings.outputs.build-output-dir }}/benchmark/${{ matrix.build_type }}/benchmark_counter.exe"
- name: Run verify_counter
run: ${{ steps.strings.outputs.build-output-dir }}/verify_counter
- name: Run Executables
if: matrix.os == 'ubuntu-latest'
run: |
./${{ steps.strings.outputs.build-output-dir }}/verify/${{ matrix.build_type }}/verify_counter
./${{ steps.strings.outputs.build-output-dir }}/benchmark/${{ matrix.build_type }}/benchmark_counter

0 comments on commit 8fb654d

Please sign in to comment.