Skip to content

Commit 636e7a3

Browse files
committed
Only install compiler when not working with images
1 parent 83e475d commit 636e7a3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/actions/setup-python/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
name: 'Setup Python'
22
description: 'Sets up Python and installs requirements (including Conan)'
33

4+
inputs:
5+
install-python:
6+
description: 'Whether to run actions/setup-python'
7+
default: 'true'
8+
49
runs:
510
using: "composite"
611
steps:
712
- name: Set up Python
13+
if: inputs.install-python == 'true'
814
uses: actions/setup-python@v5.4.0
915
with:
1016
python-version: '3.13'

.github/workflows/cmake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ jobs:
219219
- uses: actions/checkout@v6.0.2
220220

221221
- name: Install Compiler
222+
if: ${{ !matrix.settings.bebe_image }}
222223
uses: ./.github/actions/setup-compiler
223224
with:
224225
compiler-type: ${{ matrix.settings.compiler.type }}
@@ -228,6 +229,8 @@ jobs:
228229

229230
- name: Setup Python
230231
uses: ./.github/actions/setup-python
232+
with:
233+
install-python: ${{ !matrix.settings.bebe_image }}
231234

232235
- name: Cache Conan Restore
233236
uses: ./.github/actions/conan-cache-restore

0 commit comments

Comments
 (0)