Salt onedir archive for windows is now a Zipfile

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-13 13:46:35 +00:00 committed by Megan Wilhite
parent 0f53f6f954
commit 475ab5f05e

View file

@ -101,20 +101,35 @@ jobs:
key: ${{ inputs.cache-seed }}|testrun-deps|${{ inputs.distro-slug }}|${{ inputs.nox-session }}|${{ matrix.transport }}|${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json') }}
- name: Download Onedir Tarball as an Artifact
if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'
if: inputs.platform != 'windows' && steps.nox-dependencies-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3
with:
name: ${{ inputs.package-name }}-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz
path: artifacts/
- name: Download Onedir Zipfile as an Artifact
if: inputs.platform == 'windows' && steps.nox-dependencies-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3
with:
name: ${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip
path: artifacts/
- name: Decompress Onedir Tarball
if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'
if: inputs.platform != 'windows' && steps.nox-dependencies-cache.outputs.cache-hit != 'true'
shell: bash
run: |
python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"
cd artifacts
tar xvf ${{ inputs.package-name }}-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz
- name: Decompress Onedir Zipfile
if: inputs.platform == 'windows' && steps.nox-dependencies-cache.outputs.cache-hit != 'true'
shell: bash
run: |
python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"
cd artifacts
unzip ${{ inputs.package-name }}-${{ inputs.arch }}-${{ inputs.platform }}.zip
# Skip jobs if nox.*.tar.* is already cached
- name: PyPi Proxy
if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'