-
Notifications
You must be signed in to change notification settings - Fork 19
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
3 changed files
with
102 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build gatling for USD (with Tests) | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
archive-name: | ||
description: "Name of the archive containing the build artifacts" | ||
value: build-${{ inputs.build-config }}-${{ github.sha }} | ||
inputs: | ||
build-config: | ||
description: "Name of the CMake build configuration" | ||
required: false | ||
type: string | ||
default: "Release" | ||
usd-version: | ||
description: "Name of the USD release, in the form 'XX.XX'" | ||
required: true | ||
type: string | ||
mdl-sdk-cache-key-prefix: | ||
description: "Prefix of the MDL SDK cache key" | ||
required: false | ||
type: string | ||
default: "MDL-SDK" | ||
# TODO: upload test results instead | ||
upload-archives: | ||
description: "Whether build results should be uploaded or not" | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
build: | ||
name: Build USD v${{ inputs.usd-version }} for ${{ matrix.name }} (${{ inputs.build-config }}) with Tests | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- name: Ubuntu / GCC | ||
image: ubuntu-20.04 | ||
usd-download-url: "https://github.com/pablode/USD/releases/download/v${{ inputs.usd-version }}-ci-release/USD${{ inputs.usd-version }}_Linux_x64.tar.gz" | ||
usd-install-path: "/home/runner/work/USD/USD/INSTALL" | ||
upload-archive: ${{ inputs.upload-archives }} | ||
archive-file-name: "gatling_USD${{ inputs.usd-version }}_Linux_x64.tar.gz" | ||
run-tests: true | ||
|
||
uses: ./.github/workflows/build.yml | ||
with: | ||
image: ${{ matrix.image }} | ||
build-config: ${{ inputs.build-config }} | ||
usd-download-url: ${{ matrix.usd-download-url }} | ||
usd-install-path: ${{ matrix.usd-install-path }} | ||
upload-archive: ${{ matrix.upload-archive }} | ||
archive-name: tests-${{ inputs.build-config }}-${{ github.sha }} | ||
archive-file-name: ${{ matrix.archive-file-name }} | ||
mdl-sdk-cache-key: ${{ inputs.mdl-sdk-cache-key-prefix }}_${{ matrix.image }} |
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 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