Skip to content

Commit

Permalink
[ghactions] For pull_request events use target branch name in the tri…
Browse files Browse the repository at this point in the history
…qs clone command
  • Loading branch information
Wentzell committed Nov 15, 2024
1 parent b97eb29 commit 54918d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ jobs:
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
TRIQS_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
run: |
git clone https://github.com/TRIQS/triqs --branch ${{ github.ref_name }}
git clone https://github.com/TRIQS/triqs --branch $TRIQS_BRANCH
mkdir triqs/build && cd triqs/build
cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install
make -j1 install VERBOSE=1
Expand Down

0 comments on commit 54918d7

Please sign in to comment.