forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.7 KB
/
Copy pathcheck-dd4hep-integration.yml
File metadata and controls
56 lines (51 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#-------------------------------- -*- yaml -*- ---------------------------------#
# Copyright Celeritas contributors: see top-level COPYRIGHT file for details
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#-----------------------------------------------------------------------------#
# Check that dd4hep plugin builds and runs on EIC containers
#-----------------------------------------------------------------------------#
name: Check dd4hep integration
on:
workflow_dispatch:
workflow_call:
concurrency:
group: build-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}-${{github.workflow}}
cancel-in-progress: true
jobs:
check-dd4hep-integration:
container: ghcr.io/eic/eic_ci:nightly
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l -o pipefail {0}
steps:
- name: Check out
uses: actions/checkout@v5
- name: Configure
run: |
eic-info
cmake --log-level=verbose -S . -B build \
-DCELERITAS_USE_DD4hep=ON -DCMAKE_INSTALL_PREFIX=install
- name: Build and install
id: build
working-directory: build
run: |
cmake --build . -j8
cmake --install .
- name: Run preshower simulation
working-directory: example/ddceler
run: |
./run-preshower.sh celeritas \
--numberOfEvents 3 \
--random.seed=1 \
--random.enableEventSeed
- name: Upload artifacts
uses: actions/upload-artifact@v4
if:
${{
!cancelled()
&& steps.build.outcome == 'success'
}}
with:
name: simulation-artifacts
path: example/ddceler/output/**