-
Notifications
You must be signed in to change notification settings - Fork 6
65 lines (57 loc) · 2.49 KB
/
build-usd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build guc for USD
on:
workflow_call:
inputs:
usd-version:
required: true
type: string
build-config:
required: true
type: string
extra-cmake-flags:
required: false
type: string
upload-archive:
required: false
type: boolean
default: true
outputs:
archive-name:
description: "Name of the archive containing the build artifacts."
value: build-${{ inputs.build-config }}-${{ github.sha }}
jobs:
build:
name: Build ${{ matrix.os-family }} ${{ matrix.build-config }}
strategy:
matrix:
include:
- os-family: Linux
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
archive-file-name: guc_USD${{ inputs.usd-version }}_Linux_x64.tar.gz
- os-family: MacOS
image: macos-12
usd-download-url: "https://github.com/pablode/USD/releases/download/v${{ inputs.usd-version }}-ci-release/USD${{ inputs.usd-version }}_MacOS_x64.tar.gz"
usd-install-path: /Users/runner/work/USD/USD/INSTALL
archive-file-name: guc_USD${{ inputs.usd-version }}_MacOS_x64.tar.gz
- os-family: MacOS
image: macos-14
usd-download-url: "https://github.com/pablode/USD/releases/download/v${{ inputs.usd-version }}-ci-release/USD${{ inputs.usd-version }}_MacOS_ARM.tar.gz"
usd-install-path: /Users/runner/work/USD/USD/INSTALL
archive-file-name: guc_USD${{ inputs.usd-version }}_MacOS_ARM.tar.gz
- os-family: Windows
image: windows-2019
usd-download-url: "https://github.com/pablode/USD/releases/download/v${{ inputs.usd-version }}-ci-release/USD${{ inputs.usd-version }}_Windows_x64.tar.gz"
usd-install-path: C:/INSTALL
archive-file-name: guc_USD${{ inputs.usd-version }}_Windows_x64.tar.gz
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: ${{ inputs.upload-archive }}
archive-name: build-${{ inputs.build-config }}-${{ github.sha }}
archive-file-name: ${{ matrix.archive-file-name }}
extra-cmake-flags: ${{ inputs.extra-cmake-flags }}