diff --git a/.github/workflows/common-build.yml b/.github/workflows/common-build.yml index fd56660..5bba3d0 100644 --- a/.github/workflows/common-build.yml +++ b/.github/workflows/common-build.yml @@ -8,17 +8,9 @@ on: jobs: build: - strategy: - matrix: - include: - - os: windows-latest - exec_ext: .exe - - os: ubuntu-latest - exec_ext: '' - - os: macos-latest - exec_ext: '' - - runs-on: ${{ matrix.os }} + runs-on: ${{ inputs.os }} + env: + EXT: ${{ (runner.os == 'Windows') && '.exe' || '' }} steps: - name: Checkout cpp-oasvalidator uses: actions/checkout@v4 @@ -34,11 +26,8 @@ jobs: with: workflowPreset: 'build-example-and-run-unittests' - - name: Run Unit Tests - run: build/release/test/unittest/oasvalidator-unittests${{ matrix.exec_ext }} - - name: Run Example - run: build/release/example/oasvalidator-example${{ matrix.exec_ext }} + run: ./build/release/example/oasvalidator-example${{ env.EXT }} - name: Run Performance Tests - run: build/release/test/perftest/oasvalidator-perftests${{ matrix.exec_ext }} + run: ./build/release/test/perftest/oasvalidator-perftests${{ env.EXT }}