File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 56
56
. /etc/profile
57
57
echo "/opt/view/bin" >> $GITHUB_PATH
58
58
echo "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}" >> $GITHUB_ENV
59
- # NOTE: checkout must occur *after* setting up environment for git tags to work
59
+ # NOTE: checkout must occur *after* setting up environment to use the right Git version
60
60
# NOTE: depth must be enough to include the previous tag
61
61
- name : Check out Celeritas
62
62
uses : actions/checkout@v4
66
66
- name : Configure Celeritas
67
67
run : |
68
68
git config --global --add safe.directory ${PWD}
69
+ git fetch --tags
69
70
ln -fs scripts/cmake-presets/ci-${{matrix.image}}.json CMakeUserPresets.json
70
71
cmake --preset=${CMAKE_PRESET}
71
72
- name : Build Celeritas
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ jobs:
145
145
ccache -z
146
146
- name : Configure Celeritas
147
147
run : |
148
+ # NOTE: tags have issues, see https://github.com/actions/checkout/issues/2041
149
+ git fetch --tags
148
150
ln -fs scripts/cmake-presets/ci-ubuntu-github.json CMakeUserPresets.json
149
151
if [ "${{matrix.geant}}" == "11.0" ]; then
150
152
# Test overriding of Geant4 environment variables
You can’t perform that action at this time.
0 commit comments