Skip to content

Commit

Permalink
Try another thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jan 9, 2024
1 parent fa44aaa commit a467a31
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/NVHPC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,14 @@ jobs:
apt-get install -y python${{ env.PYTHON }} python${{ env.PYTHON }}-venv python${{ env.PYTHON }}-distutils python${{ env.PYTHON }}-dev python3-pip
# create and activate a venv + install python deps into it, to workaround a deadsnakes + pip quirk
python${{ env.PYTHON }} -m venv .venv
source .venv/bin/activate
echo "$(pwd)/.venv/bin"
echo "ls venv"
ls $(pwd)/.venv
echo "ls bin"
ls $(pwd)/.venv/bin
ls does-not-exist
source .venv/bin/activate
# manually add venv dirs to the path and env for later steps
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$(pwd)/venv/" >> $GITHUB_ENV
python${{ env.PYTHON }} -m pip install --upgrade wheel build setuptools
which python3
python3 --version
# these conditions need to be based on the version in the container, not the host. Might want tweaking, or just relies on the yml being correct.
- name: Install Visualisation Dependencies
Expand Down Expand Up @@ -183,6 +179,10 @@ jobs:
# Inner directory case changes in some releases, use find to get the right path
echo "$(dirname $(find $(pwd) -wholename "*/bin/cmake" -exec echo {} \; -quit))" >> $GITHUB_PATH
- name: py test
run: |
which python3
python3 --version
- name: Configure cmake
run: >
Expand All @@ -196,7 +196,6 @@ jobs:
-DFLAMEGPU_BUILD_PYTHON="${{ env.FLAMEGPU_BUILD_PYTHON }}"
-DPYTHON3_EXACT_VERSION="${{ env.PYTHON }}"
-DPython3_ROOT_DIR="$(pwd)/.venv/bin"
-DPython3_EXECUTABLE="$(pwd)/.venv/bin/python3)"
-DPython_FIND_STRATEGY=LOCATION
-DFLAMEGPU_VISUALISATION="${{ env.VISUALISATION }}"
-DFLAMEGPU_ENABLE_NVTX="ON"
Expand Down

0 comments on commit a467a31

Please sign in to comment.