-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
94 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
name: build and test | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
job: | ||
name: ${{ matrix.os }}-${{ github.workflow }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- name: Checkout cpp-oasvalidator | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- uses: lukka/get-cmake@latest | ||
|
||
- name: Run CMake Ninja build all release preset including example, unittests, perftests | ||
uses: lukka/run-cmake@v10 | ||
id: runcmake | ||
with: | ||
workflowPreset: 'release-all' | ||
#name: build and test | ||
#on: [push, workflow_dispatch] | ||
# | ||
#jobs: | ||
# job: | ||
# name: ${{ matrix.os }}-${{ github.workflow }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-latest, macos-latest, windows-latest] | ||
# | ||
# steps: | ||
# - name: Checkout cpp-oasvalidator | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# fetch-depth: 0 | ||
# | ||
# - uses: lukka/get-cmake@latest | ||
# | ||
# - name: Run CMake Ninja build all release preset including example, unittests, perftests | ||
# uses: lukka/run-cmake@v10 | ||
# id: runcmake | ||
# with: | ||
# workflowPreset: 'release-all' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Common Build and Test Steps | ||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: Checkout cpp-oasvalidator | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- uses: lukka/get-cmake@latest | ||
|
||
- name: Run CMake Ninja build all release preset including example, unittests, perftests | ||
uses: lukka/run-cmake@v10 | ||
id: runcmake | ||
with: | ||
workflowPreset: 'build-test-and-example' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Ubuntu Build and Test | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
ubuntu-job: | ||
uses: ./.github/workflows/common-build.yml | ||
with: | ||
os: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Mac Build and Test | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
ubuntu-job: | ||
uses: ./.github/workflows/common-build.yml | ||
with: | ||
os: macos-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Windows Build and Test | ||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
ubuntu-job: | ||
uses: ./.github/workflows/common-build.yml | ||
with: | ||
os: windows-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.