Skip to content

Commit 362b471

Browse files
committed
using /opt/projects/gemc/g4install/macosx26-clang21-arm64 instead of /opt/projects/gemc/g4install/macosx26-clang21-arm64/gemc/dev for installation paths in ci builds
1 parent 50d7774 commit 362b471

7 files changed

Lines changed: 58 additions & 8 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ jobs:
5454
steps:
5555
- name: Checkout repository
5656
uses: actions/checkout@v6
57-
57+
with:
58+
fetch-depth: 0
59+
60+
- name: Verify CodeQL source root
61+
shell: bash
62+
run: |
63+
git rev-parse --show-toplevel
64+
test "$(git rev-parse --show-toplevel)" = "${GITHUB_WORKSPACE}"
65+
5866
# Add any setup steps before running the `GitHub/codeql-action/init` action.
5967
# This includes steps like installing compilers or runtimes (`actions/setup-node`
6068
# or others). This is typically only required for manual builds.

.github/workflows/update-binder.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [ published ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
update-binder-repo:
912
runs-on: ubuntu-latest
@@ -37,4 +40,4 @@ jobs:
3740
REPO="gemc%2Fbinder-tutorials"
3841
curl -s "https://mybinder.org/build/gh/${REPO}/main" \
3942
--max-time 300 --no-buffer | tail -5
40-
echo "Binder pre-warm triggered for ${TAG}"
43+
echo "Binder pre-warm triggered for ${TAG}"

ci/dockerfile_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def install_gemc(geant4_version: str, gemc_version: str) -> str:
4646
commands += f" && DOCKER_ENTRYPOINT_SOURCE_ONLY=1 . {remote_entrypoint()} \\\n"
4747
commands += f' && module load geant4/{geant4_version} \\\n'
4848
commands += f' && ./ci/build.sh \\\n'
49-
commands += f' && echo "module load gemc" >> {remote_entrypoint_addon()} \n'
49+
commands += f' && echo ". \\${{SIM_HOME}}/gemc/gemc.sh" >> {remote_entrypoint_addon()} \n'
5050
return commands
5151

5252

ci/env.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function show_gemc_installation {
4040

4141
function meson_setup_options {
4242
# valid options: address, thread, undefined, memory, leak
43-
local install_dir="${GEMC:?GEMC not set}"
43+
local install_dir="${SIM_HOME:?SIM_HOME not set}/gemc"
4444

4545
meson_options=""
4646
buildtype=" -Dbuildtype=debug "
@@ -87,6 +87,8 @@ function meson_setup_options {
8787
echo "${args[@]}"
8888
}
8989

90+
export GEMC="${SIM_HOME:?SIM_HOME not set}/gemc"
91+
9092
log_dir=$SIM_HOME/logs
9193
test_interactive_option=""
9294

@@ -105,10 +107,6 @@ else
105107
log_dir=/root/src/logs
106108
fi
107109

108-
109-
export GEMC=${SIM_HOME}/gemc/dev
110-
111-
112110
# detect cores and cap at 16
113111
cores=$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc)
114112
jobs=$((cores < 16 ? cores : 16))

meson/gemc.csh.in

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Source this file to use this GEMC installation from csh or tcsh.
2+
3+
setenv GEMC_HOME "@GEMC_PREFIX@"
4+
5+
if ( $?PATH ) then
6+
setenv PATH "${GEMC_HOME}/@GEMC_BINDIR@:${GEMC_HOME}/api:${PATH}"
7+
else
8+
setenv PATH "${GEMC_HOME}/@GEMC_BINDIR@:${GEMC_HOME}/api"
9+
endif
10+
11+
if ( $?LD_LIBRARY_PATH ) then
12+
setenv LD_LIBRARY_PATH "${GEMC_HOME}/@GEMC_LIBDIR@:${LD_LIBRARY_PATH}"
13+
else
14+
setenv LD_LIBRARY_PATH "${GEMC_HOME}/@GEMC_LIBDIR@"
15+
endif
16+
17+
if ( $?DYLD_LIBRARY_PATH ) then
18+
setenv DYLD_LIBRARY_PATH "${GEMC_HOME}/@GEMC_LIBDIR@:${DYLD_LIBRARY_PATH}"
19+
else
20+
setenv DYLD_LIBRARY_PATH "${GEMC_HOME}/@GEMC_LIBDIR@"
21+
endif
22+
23+
# GEMC's API modules live in GEMC_HOME/api. The analyzer package is installed
24+
# as GEMC_HOME/analyzer, so GEMC_HOME itself must also be on PYTHONPATH.
25+
if ( $?PYTHONPATH ) then
26+
setenv PYTHONPATH "${GEMC_HOME}/api:${GEMC_HOME}:${PYTHONPATH}"
27+
else
28+
setenv PYTHONPATH "${GEMC_HOME}/api:${GEMC_HOME}"
29+
endif

meson/gemc.sh.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Source this file to use this GEMC installation from a Bourne-compatible shell.
2+
3+
export GEMC_HOME="@GEMC_PREFIX@"
4+
5+
export PATH="${GEMC_HOME}/@GEMC_BINDIR@:${GEMC_HOME}/api${PATH:+:${PATH}}"
6+
export LD_LIBRARY_PATH="${GEMC_HOME}/@GEMC_LIBDIR@${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
7+
export DYLD_LIBRARY_PATH="${GEMC_HOME}/@GEMC_LIBDIR@${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}"
8+
9+
# GEMC's API modules live in GEMC_HOME/api. The analyzer package is installed
10+
# as GEMC_HOME/analyzer, so GEMC_HOME itself must also be on PYTHONPATH.
11+
export PYTHONPATH="${GEMC_HOME}/api:${GEMC_HOME}${PYTHONPATH:+:${PYTHONPATH}}"

releases/0.2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ Both x86_64 and ARM64 platforms are supported.
7979
on `PATH`
8080
- Cleaned up Meson test behavior by fixing duplicate test names and making
8181
ROOT-dependent tests conditional on ROOT availability
82+
- Using $SIM_HOME instead of $GEMC for installation paths
8283
- Various code cleanups

0 commit comments

Comments
 (0)