Skip to content

Commit

Permalink
Hotfix: fetch tags manually to fix CI (#1580)
Browse files Browse the repository at this point in the history
* Fetch tags manually

* fixup! Fetch tags manually
  • Loading branch information
sethrj authored Jan 14, 2025
1 parent 96d4e58 commit dafd27f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
. /etc/profile
echo "/opt/view/bin" >> $GITHUB_PATH
echo "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}" >> $GITHUB_ENV
# NOTE: checkout must occur *after* setting up environment for git tags to work
# NOTE: checkout must occur *after* setting up environment to use the right Git version
# NOTE: depth must be enough to include the previous tag
- name: Check out Celeritas
uses: actions/checkout@v4
Expand All @@ -66,6 +66,7 @@ jobs:
- name: Configure Celeritas
run: |
git config --global --add safe.directory ${PWD}
git fetch --tags
ln -fs scripts/cmake-presets/ci-${{matrix.image}}.json CMakeUserPresets.json
cmake --preset=${CMAKE_PRESET}
- name: Build Celeritas
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ jobs:
ccache -z
- name: Configure Celeritas
run: |
# NOTE: tags have issues, see https://github.com/actions/checkout/issues/2041
git fetch --tags
ln -fs scripts/cmake-presets/ci-ubuntu-github.json CMakeUserPresets.json
if [ "${{matrix.geant}}" == "11.0" ]; then
# Test overriding of Geant4 environment variables
Expand Down

0 comments on commit dafd27f

Please sign in to comment.