Skip to content

Commit

Permalink
GA: refactor workflows to accomodate multiple USD versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Mar 9, 2024
1 parent b422d84 commit 28b944f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Build guc for USD v24.03
name: Build guc for USD v${{ inputs.usd-version }}

on:
workflow_call:
inputs:
usd-version:
required: true
type: string
build-config:
required: true
type: string
Expand All @@ -24,21 +27,21 @@ jobs:
include:
- os-family: Linux
image: ubuntu-20.04
usd-download-url: "https://github.com/pablode/USD/releases/download/v24.03-ci-release/USD24.03_Linux_x64_Python3.9.tar.gz"
usd-download-url: "https://github.com/pablode/USD/releases/download/v{{ inputs.usd-version }}-ci-release/USD{{ inputs.usd-version }}_Linux_x64_Python3.9.tar.gz"
usd-install-path: /home/runner/work/USD/USD/INSTALL
archive-file-name: guc_USD24.03_Linux_x64_Python3.9.tar.gz
archive-file-name: guc_USD{{ inputs.usd-version }}_Linux_x64_Python3.9.tar.gz

- os-family: MacOS
image: macos-12
usd-download-url: "https://github.com/pablode/USD/releases/download/v24.03-ci-release/USD24.03_MacOS_x64_Python3.9.tar.gz"
usd-download-url: "https://github.com/pablode/USD/releases/download/v{{ inputs.usd-version }}-ci-release/USD{{ inputs.usd-version }}_MacOS_x64_Python3.9.tar.gz"
usd-install-path: /Users/runner/work/USD/USD/INSTALL
archive-file-name: guc_USD24.03_MacOS_x64_Python3.9.tar.gz
archive-file-name: guc_USD{{ inputs.usd-version }}_MacOS_x64_Python3.9.tar.gz

- os-family: Windows
image: windows-2019
usd-download-url: "https://github.com/pablode/USD/releases/download/v24.03-ci-release/USD24.03_Windows_x64_Python3.9.tar.gz"
usd-download-url: "https://github.com/pablode/USD/releases/download/v{{ inputs.usd-version }}-ci-release/USD{{ inputs.usd-version }}_Windows_x64_Python3.9.tar.gz"
usd-install-path: C:/INSTALL
archive-file-name: guc_USD24.03_Windows_x64_Python3.9.tar.gz
archive-file-name: guc_USD{{ inputs.usd-version }}_Windows_x64_Python3.9.tar.gz

uses: ./.github/workflows/build.yml
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:

jobs:
build:
name: Build guc for USD v23.08
uses: ./.github/workflows/build-usd23.08.yml
name: Build guc for USD v24.03
uses: ./.github/workflows/build-usd.yml
with:
usd-version: 24.03
build-config: Release

deploy-release:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/run-tests-usd24.03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ defaults:
jobs:
build-debug:
name: Build guc for USD v24.03 (Debug)
uses: ./.github/workflows/build-usd24.03.yml
uses: ./.github/workflows/build-usd.yml
with:
usd-version: 24.03
build-config: Debug
extra-cmake-flags: -DCMAKE_COMPILE_WARNING_AS_ERROR=ON

build-release:
name: Build guc for USD v24.03 (Release)
uses: ./.github/workflows/build-usd24.03.yml
uses: ./.github/workflows/build-usd.yml
with:
usd-version: 24.03
build-config: Release
extra-cmake-flags: -DCMAKE_COMPILE_WARNING_AS_ERROR=ON

Expand Down

0 comments on commit 28b944f

Please sign in to comment.