Skip to content

build: add basic workflow to build PRs #13

build: add basic workflow to build PRs

build: add basic workflow to build PRs #13

name: Build Pull Request
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
runs-on: [gpu]
container:
image: ghcr.io/bnlnpps/esi-shell:latest
volumes:
- /usr/local/optix:/usr/local/optix
options: -i -t
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
shell: bash
env:
TMP: /tmp/test
GEOM: geom
OPTICKS_EVENT_MODE: DebugLite
run: |
cmake -S . -B build
cmake --build build
opticks-rngdir
#qudarap-prepare-installation
QCurandState_SPEC=3:0:0 /usr/local/opticks/lib/QCurandStateTest
build/src/simtox
build/src/simg4ox -g geom/raindrop.gdml -m run.mac
ls -la /tmp/myname/GEOM/mygeom/simg4ox/ALL0/A000
ls -la /tmp/myname/GEOM/mygeom/simg4ox/ALL0/B000