-
Notifications
You must be signed in to change notification settings - Fork 91
34 lines (34 loc) · 1.06 KB
/
gh-build-and-test.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
on:
workflow_call:
inputs:
platform:
type: string
required: true
target-device:
type: string
required: true
build-mode:
type: string
required: true
build-type:
type: string
required: true
upload-enabled:
type: boolean
required: true
jobs:
build:
if: ${{ github.repository_owner == 'nvidia' }}
uses:
.github/workflows/gh-build.yml
with:
client-repo: ${{ github.event.repository.name }}
target-device: ${{ inputs.target-device }}
runs-on: ${{ (inputs.platform == 'linux-x64' && 'linux-amd64-cpu16') || (inputs.platform == 'linux-aarch64' && 'linux-arm64-cpu16') || (inputs.platform == 'mac' && 'macos-latest') }}
build-type: ${{ inputs.build-type }}
use-container: ${{ inputs.platform == 'linux-x64' || inputs.platform == 'linux-aarch64'}}
platform: ${{ inputs.platform }}
dependencies-file: ""
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
secrets: inherit