Skip to content

Commit

Permalink
Explicitly request PR repo
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Feb 5, 2025
1 parent 6768fdb commit edf4a2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,15 @@ jobs:
cmake --install build --prefix installation
popd
{% endfor %}
mkdir -p ${{ github.repository }}
pushd ${{ github.repository }}
set REPO=${{ github.event.pull_request.head.repo.full_name || github.repository }}
mkdir -p $REPO
pushd $REPO
git init
git remote add origin ${{ github.server_url }}/${{ github.repository }}
git remote add origin ${{ github.server_url }}/$REPO
git fetch origin ${{ github.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 Down

0 comments on commit edf4a2c

Please sign in to comment.