Skip to content

Commit

Permalink
Run
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Dec 4, 2023
1 parent b74a6b0 commit c0ea2e1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,27 @@ jobs:
id: runcmake
with:
workflowPreset: 'build-test-and-example'

- name: Run Example
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
build/release/example/oasvalidator-example.exe
else
build/release/example/oasvalidator-example
fi
- name: Run Unit Tests
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
build/release/test/unittest/oasvalidator-unittests.exe
else
build/release/test/unittest/oasvalidator-unittests
fi
- name: Run Performance Tests
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
build/release/test/perftest/oasvalidator-perftests.exe
else
build/release/test/perftest/oasvalidator-perftests
fi
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ jobs:
ubuntu-job:
uses: ./.github/workflows/common-build.yml
with:
os: ubuntu-latest
os: ubuntu-latest
2 changes: 1 addition & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ jobs:
ubuntu-job:
uses: ./.github/workflows/common-build.yml
with:
os: windows-latest
os: windows-latest

0 comments on commit c0ea2e1

Please sign in to comment.