Skip to content

Commit

Permalink
Merge pull request #592 from TriBITSPub/gha-fix-build-doc-tests
Browse files Browse the repository at this point in the history
Fix broken build docs tests run with GitHub Actions
  • Loading branch information
bartlettroscoe authored Jul 26, 2023
2 parents 95fafb7 + 928e562 commit 8c1874c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/tribits_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
which ${{ matrix.config.cxx }}
${{ matrix.config.cxx }} --version
if [ "${{ matrix.config.fc }}" = "" ]; then echo "No fortran compiler"; else echo "Checking gfortran path and version" && which ${{ matrix.config.fc }} && ${{ matrix.config.fc }} --version; fi
- name: Fetch repo tags
run: |
echo "Running: git fetch origin 'refs/tags/*:refs/tags/*'"
git fetch origin 'refs/tags/*:refs/tags/*'
echo "Running: git tag"
git tag
- name: Run configure, build, test, and submit to CDash
run: |
cd ..
Expand Down
3 changes: 2 additions & 1 deletion tribits/doc/utils/gen_doc_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function generate_git_version_file {
echo
echo "Generating git version"
echo
echo `git describe --match="$_TRIBITS_TAG_PREFIX*"` > TribitsGitVersion.txt
git describe --always --match="$_TRIBITS_TAG_PREFIX*" > TribitsGitVersion.txt || \
echo "$_TRIBITS_TAG_PREFIX.{Unknown version}" > TribitsGitVersion.txt
else
echo "$_TRIBITS_TAG_PREFIX.{Unknown version}" > TribitsGitVersion.txt
fi
Expand Down

0 comments on commit 8c1874c

Please sign in to comment.