mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Pass the python version too
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
520ec4a0e9
commit
4ab503d459
20 changed files with 85 additions and 92 deletions
6
.github/workflows/build-deb-packages.yml
vendored
6
.github/workflows/build-deb-packages.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
description: The relenv version to set prior to building packages.
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
description: The version of python to use with relenv
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -84,7 +88,7 @@ jobs:
|
|||
- name: Build Deb
|
||||
working-directory: pkgs/checkout/
|
||||
run: |
|
||||
tools pkg build deb --relenv-version=${{ inputs.relenv-version }} ${{
|
||||
tools pkg build deb --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{
|
||||
matrix.source == 'onedir' &&
|
||||
format('--onedir=salt-{0}-onedir-linux-{1}.tar.xz', inputs.salt-version, matrix.arch)
|
||||
||
|
||||
|
|
24
.github/workflows/build-deps-onedir.yml
vendored
24
.github/workflows/build-deps-onedir.yml
vendored
|
@ -23,21 +23,11 @@ on:
|
|||
type: string
|
||||
default: 0.12.3
|
||||
description: The version of relenv to use
|
||||
python-version-linux:
|
||||
python-version:
|
||||
required: false
|
||||
type: string
|
||||
default: 3.10.9
|
||||
description: The version of python to use with relenv
|
||||
python-version-macos:
|
||||
required: false
|
||||
type: string
|
||||
default: 3.10.9
|
||||
description: The version of python to use with relenv
|
||||
python-version-windows:
|
||||
required: false
|
||||
type: string
|
||||
description: The version of python to use with relenv on Windows
|
||||
default: 3.10.9
|
||||
|
||||
env:
|
||||
RELENV_DATA: "${{ github.workspace }}/.relenv"
|
||||
|
@ -67,7 +57,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-linux }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
@ -77,7 +67,7 @@ jobs:
|
|||
with:
|
||||
platform: linux
|
||||
arch: ${{ matrix.arch }}
|
||||
python-version: "${{ inputs.python-version-linux }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
||||
|
||||
|
@ -108,7 +98,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-windows }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
@ -118,7 +108,7 @@ jobs:
|
|||
with:
|
||||
platform: windows
|
||||
arch: ${{ matrix.arch }}
|
||||
python-version: "${{ inputs.python-version-windows }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
||||
|
||||
|
@ -148,7 +138,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-macos }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
@ -158,5 +148,5 @@ jobs:
|
|||
with:
|
||||
platform: darwin
|
||||
arch: ${{ matrix.arch }}
|
||||
python-version: "${{ inputs.python-version-macos }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
|
6
.github/workflows/build-macos-packages.yml
vendored
6
.github/workflows/build-macos-packages.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
description: The relenv version to set prior to building packages.
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
description: The version of python to use with relenv
|
||||
sign-packages:
|
||||
type: boolean
|
||||
default: false
|
||||
|
@ -108,7 +112,7 @@ jobs:
|
|||
APPLE_ACCT: "${{ secrets.MAC_SIGN_APPLE_ACCT }}"
|
||||
APP_SPEC_PWD: "${{ secrets.MAC_SIGN_APP_SPEC_PWD }}"
|
||||
run: |
|
||||
tools pkg build macos --relenv-version=${{ inputs.relenv-version }} ${{
|
||||
tools pkg build macos --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{
|
||||
matrix.source == 'onedir' &&
|
||||
format(
|
||||
'--onedir salt-{0}-onedir-darwin-{1}.tar.xz --salt-version {0} {2}',
|
||||
|
|
6
.github/workflows/build-rpm-packages.yml
vendored
6
.github/workflows/build-rpm-packages.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
description: The relenv version to set prior to building packages.
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
description: The version of python to use with relenv
|
||||
|
||||
env:
|
||||
COLUMNS: 190
|
||||
|
@ -72,7 +76,7 @@ jobs:
|
|||
|
||||
- name: Build RPM
|
||||
run: |
|
||||
tools pkg build rpm --relenv-version=${{ inputs.relenv-version }} ${{
|
||||
tools pkg build rpm --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{
|
||||
matrix.source == 'onedir' &&
|
||||
format('--onedir=salt-{0}-onedir-linux-{1}.tar.xz', inputs.salt-version, matrix.arch)
|
||||
||
|
||||
|
|
24
.github/workflows/build-salt-onedir.yml
vendored
24
.github/workflows/build-salt-onedir.yml
vendored
|
@ -23,21 +23,11 @@ on:
|
|||
type: string
|
||||
default: 0.12.3
|
||||
description: The version of relenv to use
|
||||
python-version-linux:
|
||||
python-version:
|
||||
required: false
|
||||
type: string
|
||||
default: 3.10.9
|
||||
description: The version of python to use with relenv
|
||||
python-version-macos:
|
||||
required: false
|
||||
type: string
|
||||
default: 3.10.9
|
||||
description: The version of python to use with relenv
|
||||
python-version-windows:
|
||||
required: false
|
||||
type: string
|
||||
description: The version of python to use with relenv on Windows
|
||||
default: 3.10.9
|
||||
|
||||
env:
|
||||
RELENV_DATA: "${{ github.workspace }}/.relenv"
|
||||
|
@ -77,7 +67,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-linux }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Install Salt into Relenv Onedir
|
||||
uses: ./.github/actions/build-onedir-salt
|
||||
|
@ -85,7 +75,7 @@ jobs:
|
|||
platform: linux
|
||||
arch: ${{ matrix.arch }}
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
python-version: "${{ inputs.python-version-linux }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
||||
|
||||
|
@ -115,7 +105,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-windows }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
@ -132,7 +122,7 @@ jobs:
|
|||
platform: windows
|
||||
arch: ${{ matrix.arch }}
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
python-version: "${{ inputs.python-version-windows }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
||||
|
||||
|
@ -161,7 +151,7 @@ jobs:
|
|||
arch: ${{ matrix.arch }}
|
||||
version: ${{ inputs.relenv-version }}
|
||||
cache-seed: ${{ inputs.cache-seed }}
|
||||
python-version: ${{ inputs.python-version-macos }}
|
||||
python-version: ${{ inputs.python-version }}
|
||||
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
@ -178,5 +168,5 @@ jobs:
|
|||
platform: darwin
|
||||
arch: ${{ matrix.arch }}
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
python-version: "${{ inputs.python-version-macos }}"
|
||||
python-version: "${{ inputs.python-version }}"
|
||||
cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}
|
||||
|
|
6
.github/workflows/build-windows-packages.yml
vendored
6
.github/workflows/build-windows-packages.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
description: The relenv version to set prior to building packages.
|
||||
python-version:
|
||||
required: true
|
||||
type: string
|
||||
description: The version of python to use with relenv
|
||||
sign-packages:
|
||||
type: boolean
|
||||
default: false
|
||||
|
@ -103,7 +107,7 @@ jobs:
|
|||
|
||||
- name: Build Windows Packages
|
||||
run: |
|
||||
tools pkg build windows --relenv-version=${{ inputs.relenv-version }} ${{
|
||||
tools pkg build windows --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{
|
||||
matrix.source == 'onedir' &&
|
||||
format(
|
||||
'--onedir salt-{0}-onedir-windows-{1}.zip --salt-version {0} --arch {1} {2}',
|
||||
|
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -449,9 +449,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-salt-onedir:
|
||||
name: Build Salt Onedir
|
||||
|
@ -467,9 +465,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
|
@ -481,6 +477,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
|
@ -492,6 +489,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
|
@ -503,6 +501,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-macos-pkgs:
|
||||
name: Build macOS Packages
|
||||
|
@ -514,6 +513,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
amazonlinux-2-pkg-tests:
|
||||
name: Amazon Linux 2 Package Tests
|
||||
|
|
12
.github/workflows/nightly.yml
vendored
12
.github/workflows/nightly.yml
vendored
|
@ -507,9 +507,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-salt-onedir:
|
||||
name: Build Salt Onedir
|
||||
|
@ -525,9 +523,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
|
@ -539,6 +535,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
|
@ -550,6 +547,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
|
@ -561,6 +559,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
environment: nightly
|
||||
sign-packages: false
|
||||
secrets: inherit
|
||||
|
@ -575,6 +574,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
environment: nightly
|
||||
sign-packages: true
|
||||
secrets: inherit
|
||||
|
|
12
.github/workflows/scheduled.yml
vendored
12
.github/workflows/scheduled.yml
vendored
|
@ -492,9 +492,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-salt-onedir:
|
||||
name: Build Salt Onedir
|
||||
|
@ -510,9 +508,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
|
@ -524,6 +520,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
|
@ -535,6 +532,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
|
@ -546,6 +544,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-macos-pkgs:
|
||||
name: Build macOS Packages
|
||||
|
@ -557,6 +556,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
amazonlinux-2-pkg-tests:
|
||||
name: Amazon Linux 2 Package Tests
|
||||
|
|
12
.github/workflows/staging.yml
vendored
12
.github/workflows/staging.yml
vendored
|
@ -492,9 +492,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-salt-onedir:
|
||||
name: Build Salt Onedir
|
||||
|
@ -510,9 +508,7 @@ jobs:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "0.12.3"
|
||||
python-version-linux: "3.10.11"
|
||||
python-version-macos: "3.10.11"
|
||||
python-version-windows: "3.10.11"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
|
@ -524,6 +520,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
|
@ -535,6 +532,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
|
@ -546,6 +544,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
environment: staging
|
||||
sign-packages: ${{ inputs.sign-windows-packages }}
|
||||
secrets: inherit
|
||||
|
@ -560,6 +559,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "0.12.3"
|
||||
python-version: "3.10.11"
|
||||
environment: staging
|
||||
sign-packages: true
|
||||
secrets: inherit
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
relenv-version: "<{ relenv_version }>"
|
||||
python-version: "<{ python_version }>"
|
||||
<%- if pkg_type in ("macos", "windows") and gh_environment %>
|
||||
environment: <{ gh_environment }>
|
||||
<%- if pkg_type == "macos" %>
|
||||
|
|
8
.github/workflows/templates/ci.yml.jinja
vendored
8
.github/workflows/templates/ci.yml.jinja
vendored
|
@ -275,9 +275,7 @@ on:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "<{ relenv_version }>"
|
||||
python-version-linux: "<{ python_version_linux }>"
|
||||
python-version-macos: "<{ python_version_macos }>"
|
||||
python-version-windows: "<{ python_version_windows }>"
|
||||
python-version: "<{ python_version }>"
|
||||
|
||||
<%- endif %>
|
||||
|
||||
|
@ -300,9 +298,7 @@ on:
|
|||
self-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['self-hosted'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-workflow.outputs.runners)['github-hosted'] }}
|
||||
relenv-version: "<{ relenv_version }>"
|
||||
python-version-linux: "<{ python_version_linux }>"
|
||||
python-version-macos: "<{ python_version_macos }>"
|
||||
python-version-windows: "<{ python_version_windows }>"
|
||||
python-version: "<{ python_version }>"
|
||||
|
||||
<%- endif %>
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
distro-slug: <{ slug }>
|
||||
platform: linux
|
||||
arch: <{ arch }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_linux }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
environment: <{ gh_environment }>
|
||||
skip-code-coverage: true
|
||||
|
@ -88,7 +88,7 @@
|
|||
distro-slug: <{ slug }>
|
||||
platform: darwin
|
||||
arch: <{ arch }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_macos }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
environment: <{ gh_environment }>
|
||||
skip-code-coverage: true
|
||||
|
@ -124,7 +124,7 @@
|
|||
platform: windows
|
||||
arch: <{ arch }>
|
||||
pkg-type: <{ pkg_type.lower() }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_windows }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
environment: <{ gh_environment }>
|
||||
skip-code-coverage: true
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
arch: <{ arch }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
pkg-type: <{ pkg_type }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_linux }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
||||
|
@ -75,7 +75,7 @@
|
|||
arch: <{ arch }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
pkg-type: macos
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_macos }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
||||
|
@ -102,7 +102,7 @@
|
|||
arch: <{ arch }>
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
pkg-type: <{ pkg_type }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_windows }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
arch: amd64
|
||||
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_windows }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
pull-labels: ${{ needs.prepare-workflow.outputs.pull-labels }}
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
@ -42,7 +42,7 @@
|
|||
arch: x86_64
|
||||
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_macos }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
pull-labels: ${{ needs.prepare-workflow.outputs.pull-labels }}
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
@ -84,7 +84,7 @@
|
|||
arch: <{ arch }>
|
||||
testrun: ${{ needs.prepare-workflow.outputs.testrun }}
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version_linux }>
|
||||
cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|<{ python_version }>
|
||||
pull-labels: ${{ needs.prepare-workflow.outputs.pull-labels }}
|
||||
skip-code-coverage: <{ skip_test_coverage_check }>
|
||||
skip-junit-reports: <{ skip_junit_reports_check }>
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
python_version_linux: "3.10.11"
|
||||
python_version_macos: "3.10.11"
|
||||
python_version_windows: "3.10.11"
|
||||
python_version: "3.10.11"
|
||||
relenv_version: "0.12.3"
|
||||
|
|
|
@ -15,15 +15,16 @@ override_dh_auto_clean:
|
|||
|
||||
ifeq ("${SALT_ONEDIR_ARCHIVE}", "")
|
||||
override_dh_auto_build:
|
||||
export FETCH_RELENV_VERSION=$${SALT_RELENV_VERSION}
|
||||
mkdir -p build/onedir
|
||||
python3 -m venv --clear --copies build/onedir/venv
|
||||
build/onedir/venv/bin/python3 -m pip install relenv==$${SALT_RELENV_VERSION}
|
||||
export FETCH_RELENV_VERSION=$${SALT_RELENV_VERSION}
|
||||
export PY=$$(build/onedir/venv/bin/python3 -c 'import sys; sys.stdout.write("{}.{}".format(*sys.version_info)); sys.stdout.flush()') \
|
||||
&& build/onedir/venv/bin/python3 -m pip install -r requirements/static/ci/py$${PY}/tools.txt
|
||||
build/onedir/venv/bin/relenv fetch
|
||||
build/onedir/venv/bin/relenv toolchain fetch
|
||||
build/onedir/venv/bin/tools pkg build onedir-dependencies --arch $${SALT_PACKAGE_ARCH} --python-version $${SALT_PYTHON_VERSION} --package-name build/onedir/salt --platform linux
|
||||
build/onedir/venv/bin/relenv fetch --arch=$${SALT_PACKAGE_ARCH} --python=$${SALT_PYTHON_VERSION}
|
||||
build/onedir/venv/bin/relenv toolchain fetch --arch=$${SALT_PACKAGE_ARCH}
|
||||
build/onedir/venv/bin/tools pkg build onedir-dependencies --arch $${SALT_PACKAGE_ARCH} --relenv-version=$${SALT_RELENV_VERSION} --python-version $${SALT_PYTHON_VERSION} --package-name build/onedir/salt --platform linux
|
||||
|
||||
# Fix any hardcoded paths to the relenv python binary on any of the scripts installed in the <onedir>/bin directory
|
||||
find build/onedir/salt/bin/ -type f -exec sed -i 's:#!/\(.*\)salt/bin/python3:#!/bin/sh\n"exec" "$$(dirname $$(readlink -f $$0))/python3" "$$0" "$$@":g' {} \;
|
||||
|
|
|
@ -221,7 +221,7 @@ else
|
|||
fi
|
||||
|
||||
_msg "Extracting python environment"
|
||||
relenv create "$BUILD_DIR/opt/salt"
|
||||
relenv create --python=$PY_VERSION "$BUILD_DIR/opt/salt"
|
||||
if [ -f "$BLD_PY_BIN" ]; then
|
||||
_success
|
||||
else
|
||||
|
|
|
@ -135,15 +135,16 @@ mkdir -p $RPM_BUILD_DIR/build
|
|||
cd $RPM_BUILD_DIR
|
||||
|
||||
%if "%{getenv:SALT_ONEDIR_ARCHIVE}" == ""
|
||||
export FETCH_RELENV_VERSION=${SALT_RELENV_VERSION}
|
||||
python3 -m venv --clear --copies build/venv
|
||||
build/venv/bin/python3 -m pip install relenv==${SALT_RELENV_VERSION}
|
||||
export FETCH_RELENV_VERSION=${SALT_RELENV_VERSION}
|
||||
export PY=$(build/venv/bin/python3 -c 'import sys; sys.stdout.write("{}.{}".format(*sys.version_info)); sys.stdout.flush()')
|
||||
build/venv/bin/python3 -m pip install -r %{_salt_src}/requirements/static/ci/py${PY}/tools.txt
|
||||
build/venv/bin/relenv fetch
|
||||
build/venv/bin/relenv toolchain fetch
|
||||
build/venv/bin/relenv fetch --arch=${SALT_PACKAGE_ARCH} --python=${SALT_PYTHON_VERSION}
|
||||
build/venv/bin/relenv toolchain fetch --arch=${SALT_PACKAGE_ARCH}
|
||||
cd %{_salt_src}
|
||||
$RPM_BUILD_DIR/build/venv/bin/tools pkg build onedir-dependencies --arch ${SALT_PACKAGE_ARCH} --python-version ${SALT_PYTHON_VERSION} --package-name $RPM_BUILD_DIR/build/salt --platform linux
|
||||
$RPM_BUILD_DIR/build/venv/bin/tools pkg build onedir-dependencies --arch ${SALT_PACKAGE_ARCH} --relenv-version=${SALT_RELENV_VERSION} --python-version ${SALT_PYTHON_VERSION} --package-name $RPM_BUILD_DIR/build/salt --platform linux
|
||||
|
||||
# Fix any hardcoded paths to the relenv python binary on any of the scripts installed in
|
||||
# the <onedir>/bin directory
|
||||
|
|
|
@ -81,7 +81,7 @@ def debian(
|
|||
ctx.info("Building the package from the source files")
|
||||
shared_constants = _get_shared_constants()
|
||||
if not python_version:
|
||||
python_version = shared_constants["python_version_linux"]
|
||||
python_version = shared_constants["python_version"]
|
||||
if not relenv_version:
|
||||
relenv_version = shared_constants["relenv_version"]
|
||||
if TYPE_CHECKING:
|
||||
|
@ -148,7 +148,7 @@ def rpm(
|
|||
ctx.info(f"Building the package from the source files")
|
||||
shared_constants = _get_shared_constants()
|
||||
if not python_version:
|
||||
python_version = shared_constants["python_version_linux"]
|
||||
python_version = shared_constants["python_version"]
|
||||
if not relenv_version:
|
||||
relenv_version = shared_constants["relenv_version"]
|
||||
if TYPE_CHECKING:
|
||||
|
@ -227,7 +227,7 @@ def macos(
|
|||
# Prep the salt onedir if not building from an existing one
|
||||
shared_constants = _get_shared_constants()
|
||||
if not python_version:
|
||||
python_version = shared_constants["python_version_linux"]
|
||||
python_version = shared_constants["python_version"]
|
||||
if not relenv_version:
|
||||
relenv_version = shared_constants["relenv_version"]
|
||||
if TYPE_CHECKING:
|
||||
|
@ -316,7 +316,7 @@ def windows(
|
|||
|
||||
shared_constants = _get_shared_constants()
|
||||
if not python_version:
|
||||
python_version = shared_constants["python_version_linux"]
|
||||
python_version = shared_constants["python_version"]
|
||||
if not relenv_version:
|
||||
relenv_version = shared_constants["relenv_version"]
|
||||
if TYPE_CHECKING:
|
||||
|
@ -477,7 +477,7 @@ def onedir_dependencies(
|
|||
|
||||
shared_constants = _get_shared_constants()
|
||||
if not python_version:
|
||||
python_version = shared_constants[f"python_version_{platform}"]
|
||||
python_version = shared_constants["python_version"]
|
||||
if not relenv_version:
|
||||
relenv_version = shared_constants["relenv_version"]
|
||||
if TYPE_CHECKING:
|
||||
|
|
Loading…
Add table
Reference in a new issue