3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-03 01:55:56 +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 f695c554a3
commit 13d975bdf7

View File

@ -103,8 +103,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 unstable 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