Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Jan 22, 2024
1 parent 673fdd3 commit 02aea44
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ jobs:
id: cache
with:
path: |
llvm-project
../llvm-project
${{ matrix.cling=='On' && 'cling' || '' }}
key: ${{ env.CLING_HASH }}-${{ runner.os }}-${{ matrix.os }}-${{ matrix.compiler }}-clang-${{ matrix.clang-runtime }}.x-patch-${{ hashFiles(format('patches/llvm/clang{0}-*.patch', matrix.clang-runtime)) || 'none' }}

Expand Down Expand Up @@ -531,13 +531,14 @@ jobs:
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
with:
path: |
llvm-project
../llvm-project
${{ matrix.cling=='On' && 'cling' || '' }}
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: Build and Test/Install CppInterOp on Unix systems
if: ${{ runner.os != 'windows' }}
run: |
cd ..
git clone --depth=1 https://github.com/compiler-research/CppInterOp.git
LLVM_DIR="$(pwd)/llvm-project"
LLVM_BUILD_DIR="$(pwd)/llvm-project/build"
Expand Down Expand Up @@ -597,6 +598,7 @@ jobs:
- name: Build and Test/Install CppInterOp on Windows systems
if: ${{ runner.os == 'windows' }}
run: |
cd ..
git clone --depth=1 https://github.com/compiler-research/CppInterOp.git
$env:PWD_DIR= $PWD.Path
Expand Down Expand Up @@ -666,7 +668,6 @@ jobs:
- name: Build and Install cppyy-backend on Unix Systems
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
run: |
cd cppyy-backend
mkdir -p $CPPINTEROP_DIR/lib build && cd build
# Install CppInterOp
(cd $CPPINTEROP_BUILD_DIR && cmake --build . --target install --parallel $(nproc --all))
Expand All @@ -684,6 +685,7 @@ jobs:
- name: Install CPyCppyy on Unix Systems
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
run: |
cd ..
# Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate
Expand All @@ -701,6 +703,7 @@ jobs:
- name: Install cppyy on Unix Systems
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
run: |
cd ..
# source virtual environment
source .venv/bin/activate
# Install cppyy
Expand All @@ -711,6 +714,7 @@ jobs:
- name: Run cppyy on Unix Systems
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
run: |
cd ..
# Run cppyy
source .venv/bin/activate
export PYTHONPATH=$PYTHONPATH:$CPYCPPYY_DIR:$CB_PYTHON_DIR
Expand All @@ -721,6 +725,7 @@ jobs:
continue-on-error: true
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
run: |
cd ..
# Run the tests
source .venv/bin/activate
cd cppyy/test
Expand Down

0 comments on commit 02aea44

Please sign in to comment.