3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 12:23:41 +01:00

[ghactions] For pull_request events use target branch name in the triqs clone command

This commit is contained in:
Nils Wentzell 2024-11-15 11:49:03 -05:00
parent b97eb29f3e
commit 54918d74ba

View File

@ -108,8 +108,9 @@ jobs:
env: env:
CC: ${{ matrix.cc }} CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }} CXX: ${{ matrix.cxx }}
TRIQS_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
run: | 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 mkdir triqs/build && cd triqs/build
cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install
make -j1 install VERBOSE=1 make -j1 install VERBOSE=1