Skip to content

Commit

Permalink
Merge pull request #208 from ecmwf-ifs/fix_build-hpc_ci
Browse files Browse the repository at this point in the history
Fix build-hpc CI
  • Loading branch information
samhatfield authored Feb 5, 2025
2 parents 9d5d769 + 5cd60ec commit 5eb8d51
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ jobs:
cmake --install build --prefix installation
popd
{% endfor %}
mkdir -p ${{ github.repository }}
pushd ${{ github.repository }}
REPO=${{ github.event.pull_request.head.repo.full_name || github.repository }}
SHA=${{ github.event.pull_request.head.sha || github.sha }}
mkdir -p $REPO
pushd $REPO
git init
git remote add origin ${{ github.server_url }}/${{ github.repository }}
git fetch origin ${{ github.sha }}
git remote add origin ${{ github.server_url }}/$REPO
git fetch origin $SHA
git reset --hard FETCH_HEAD
popd
cmake -G Ninja -S ${{ github.repository }} -B build \
cmake -G Ninja -S $REPO -B build \
{% for name in dependencies %}
{% set org, proj = name.split('/') %}
-D{{proj}}_ROOT=$BASEDIR/{{name}}/installation \
Expand All @@ -153,5 +155,5 @@ jobs:
rm -r {{name}}
{% endfor %}
rm -r ${{ github.repository }}
rm -r $REPO
rm -r build

0 comments on commit 5eb8d51

Please sign in to comment.