diff --git a/.github/workflows/build-native-action.yml b/.github/workflows/build-native-action.yml index f86ec917..254f6029 100644 --- a/.github/workflows/build-native-action.yml +++ b/.github/workflows/build-native-action.yml @@ -171,14 +171,16 @@ jobs: run: | pip3 install nox - # - name: Fetch Native Build - # if: ${{ matrix.arch != 'amd64' }} - # env: - # RELENV_FETCH_VERSION: latest - # run: | - # python3 -m relenv fetch --python=${{ matrix.version }} + - name: Fetch Native Build + if: ${{ matrix.arch != 'amd64' }} + env: + RELENV_FETCH_VERSION: latest + run: | + python3 -m relenv fetch --python=3.10.11 - name: Build Python with Relenv + env: + RELENV_NATIVE_PY_VERSION: 3.10.11 run: | python -m relenv build --arch=${{ matrix.arch }} --python=${{ matrix.version }} diff --git a/relenv/build/common.py b/relenv/build/common.py index db276824..e797b21c 100644 --- a/relenv/build/common.py +++ b/relenv/build/common.py @@ -1184,9 +1184,12 @@ def __call__( if self.build_arch != self.arch: native_root = DATA_DIR / "native" if not native_root.exists(): + if "RELENV_NATIVE_PY_VERSION" in os.environ: + version = os.environ["RELENV_NATIVE_PY_VERSION"] + else: + version = self.version from relenv.create import create - - create("native", DATA_DIR, version=self.version) + create("native", DATA_DIR, version=version) # Start a process for each build passing it an event used to notify each # process if it's dependencies have finished.