Skip to content

Commit

Permalink
feat(ci): split linux-eic-shell into reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Sep 10, 2024
1 parent 5a7dd05 commit 3b37d2f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check-tracking-geometry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check tracking geometry

on:
workflow_call:
inputs:
detector_configs:
required: true
type: string

jobs:
check-tracking-geometry:
runs-on: ubuntu-latest
strategy:
matrix:
detector_config: ${{fromJson(inputs.detector_configs)}}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-gcc-fast-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
root -b -q "scripts/test_ACTS.cxx+(\"${DETECTOR_PATH}/${{matrix.detector_config}}.xml\")" | tee check_tracking_geometry.out
bin/acts_geo_check check_tracking_geometry.out
18 changes: 2 additions & 16 deletions .github/workflows/linux-eic-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,24 +173,10 @@ jobs:
check-tracking-geometry:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
detector_config: [epic_craterlake, epic_ip6]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: ./.github/workflows/check-tracking-geometry.yml
with:
name: build-gcc-fast-eic-shell
path: install/
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
network_types: "none"
setup: install/bin/thisepic.sh
run: |
root -b -q "scripts/test_ACTS.cxx+(\"${DETECTOR_PATH}/${{matrix.detector_config}}.xml\")" | tee check_tracking_geometry.out
bin/acts_geo_check check_tracking_geometry.out
detector_configs: "['epic_craterlake', 'epic_ip6']"

validate-material-map:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3b37d2f

Please sign in to comment.