Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Dec 4, 2023
1 parent df88d84 commit 37d39fb
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 37d39fb

Please sign in to comment.