Skip to content

Commit

Permalink
Add gradle base nvidia workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Aug 8, 2024
1 parent c9d91b7 commit 6b97d31
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/gradle-base-nvidia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: _gradle_base_nvidia

on:
workflow_call:
inputs:
subproject:
description: 'Subproject'
required: true
type: string
default: 'atlas'
test-category:
description: 'Test category'
required: false
type: string
default: 'fast'

permissions:
checks: write
contents: read

jobs:
build:

runs-on: [self-hosted, Linux, nvidia]

steps:
- uses: actions/checkout@v4


- name: Setup Gradle
uses: gradle/gradle-build-action@v2
id: setup-gradle
with:
gradle-version: 8.5

- name: Gradle test - ${{ inputs.test-category }}
run: |
cd ${{ inputs.subproject }}
gradle test -Pcategory=${{ inputs.test-category }} --info --no-daemon -PrunningOnCIServer=true
- name: Publish Test Report - ${{ inputs.test-category }}
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
detailed_summary: true
2 changes: 1 addition & 1 deletion .github/workflows/gradle-test-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
subproject: 'ihmc-path-planning'
test-category: 'fast'
ihmc-perception:
uses: ./.github/workflows/gradle-base.yml
uses: ./.github/workflows/gradle-base-nvidia.yml
with:
subproject: 'ihmc-perception'
test-category: 'fast'
Expand Down

0 comments on commit 6b97d31

Please sign in to comment.