Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: fetch tags manually to fix CI #1580

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading