diff --git a/.github/actions/build-linux/action.yml b/.github/actions/build-linux/action.yml index d8c004059..337b94a2e 100644 --- a/.github/actions/build-linux/action.yml +++ b/.github/actions/build-linux/action.yml @@ -10,6 +10,7 @@ runs: using: "composite" steps: - name: Install Python package + id: python_build shell: sh env: DEBUG: 1 @@ -25,7 +26,7 @@ runs: fi pip install --no-build-isolation -e ".[dev]" -v # Pass the CMAKE_ARGS to following steps. - echo CMAKE_ARGS="$CMAKE_ARGS" > $GITHUB_ENV + echo CMAKE_ARGS="$CMAKE_ARGS" >> $GITHUB_OUTPUT - name: Generate package stubs shell: sh @@ -36,5 +37,5 @@ runs: - name: Build CPP only shell: bash run: | - cmake . -B build -DCMAKE_BUILD_TYPE=Debug ${{ env.CMAKE_ARGS }} + cmake . -B build -DCMAKE_BUILD_TYPE=Debug ${{ steps.python_build.outputs.CMAKE_ARGS }} cmake --build build -j $(nproc)