mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
33 lines
831 B
YAML
33 lines
831 B
YAML
name: build and test
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash -exo pipefail {0}
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
cpu: {type: string, required: true}
|
|
test_name: {type: string, required: false}
|
|
build_script: {type: string, required: false}
|
|
test_script: {type: string, required: false}
|
|
container_image: {type: string, required: false}
|
|
run_tests: {type: boolean, required: false, default: true}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build/Test ${{inputs.test_name}}
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
uses: ./.github/workflows/run-as-coder.yml
|
|
with:
|
|
name: Build/Test ${{inputs.test_name}}
|
|
runner: linux-${{inputs.cpu}}-gpu-v100-latest-1
|
|
image: ${{ inputs.container_image }}
|
|
command: |
|
|
${{ inputs.test_script }}
|