mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update ResInsightWithCache.yml
Avoid setup-python called as part of install-qt-action
This commit is contained in:
parent
d096a67eb0
commit
57d3f7dd55
22
.github/workflows/ResInsightWithCache.yml
vendored
22
.github/workflows/ResInsightWithCache.yml
vendored
@ -57,12 +57,25 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
- name: Display Python version
|
- name: Display Python version
|
||||||
run: python -c "import sys; print(sys.version)"
|
run: python -c "import sys; print(sys.version)"
|
||||||
|
|
||||||
|
- name: Get Python executable path
|
||||||
|
id: python-path
|
||||||
|
run: echo "::set-output name=PYTHON_EXECUTABLE::$(python -c 'import sys; import pathlib; print (pathlib.PurePath(sys.executable).as_posix())')"
|
||||||
|
|
||||||
|
- name: Print Python path
|
||||||
|
run: echo ${{ steps.python-path.outputs.PYTHON_EXECUTABLE }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
# Make sure protobuf version is compatible with grpc - https://github.com/OPM/ResInsight/issues/9304
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install protobuf==3.20.*
|
||||||
|
|
||||||
- name: Use CMake
|
- name: Use CMake
|
||||||
uses: lukka/get-cmake@latest
|
uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
@ -120,6 +133,7 @@ jobs:
|
|||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
|
setup-python: false
|
||||||
version: 5.12.12
|
version: 5.12.12
|
||||||
modules: qtscript qtcharts
|
modules: qtscript qtcharts
|
||||||
dir: "${{ github.workspace }}/Qt/"
|
dir: "${{ github.workspace }}/Qt/"
|
||||||
@ -129,12 +143,6 @@ jobs:
|
|||||||
if: "contains( matrix.config.os, 'ubuntu')"
|
if: "contains( matrix.config.os, 'ubuntu')"
|
||||||
run: sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
|
run: sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
|
||||||
|
|
||||||
- name: Get Python executable path
|
|
||||||
id: python-path
|
|
||||||
run: echo "::set-output name=PYTHON_EXECUTABLE::$(python -c 'import sys; import pathlib; print (pathlib.PurePath(sys.executable).as_posix())')"
|
|
||||||
- name: Print Python path
|
|
||||||
run: echo ${{ steps.python-path.outputs.PYTHON_EXECUTABLE }}
|
|
||||||
|
|
||||||
- name: Set vcpkg's response file path used as part of cache's key.
|
- name: Set vcpkg's response file path used as part of cache's key.
|
||||||
uses: lukka/set-shell-env@master
|
uses: lukka/set-shell-env@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user