Skip to content

Commit

Permalink
Put test geometries on the github page.
Browse files Browse the repository at this point in the history
  • Loading branch information
ast0815 committed Nov 23, 2023
1 parent 661942a commit 8c1840a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,31 @@ jobs:
run: |
root -q -b 'checkOverlaps.C("nd_hall_with_lar_tms_sand.gdml", 1)' 2>&1 | tee check.log
grep "Number of illegal overlaps/extrusions : 0" check.log
put_online:
name: Put geometries online for visual inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ROOT
run: sudo snap install root-framework
- name: Download default geometry
uses: actions/download-artifact@v3.0.1
with:
name: Default Geometry
- name: Convert gdml files to root
run: |
for F in *.gdml
do
root "gdml2root.C(\"$F\", \"jsroot/${F%.gdml}.root\")"
done
- name: Replace heading in html
run: |
sed -i -e "s|master|$GITHUB_REF_NAME|" jsroot/index.htm
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload jsroot folder
path: 'jsroot'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion jsroot/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<link rel="shortcut icon" href="img/RootIcon.ico"/>
</head>
<body>
<div id="simpleGUI">
<h1>Git branch/tag: master</h1>
<div id="simpleGUI" path="." files="nd_hall_with_lar_tms_sand.root;anti_fiducial_nd_hall_with_lar_tms_sand.root">
loading scripts ...
</div>
<script type="module">
Expand Down

0 comments on commit 8c1840a

Please sign in to comment.