From c7432b6a37857fd0746b8f1776fbd1103dba0b85 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 4 Nov 2024 16:01:20 -0500 Subject: [PATCH] chore: try using 7zip on Windows to extract tarball --- .github/actions/restore-cache-aks/action.yml | 11 ++++++++++- .github/workflows/build.yml | 6 +++--- .../workflows/pipeline-segment-electron-build.yml | 12 ++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/actions/restore-cache-aks/action.yml b/.github/actions/restore-cache-aks/action.yml index 70c67f1d1c..022f79f874 100644 --- a/.github/actions/restore-cache-aks/action.yml +++ b/.github/actions/restore-cache-aks/action.yml @@ -23,7 +23,16 @@ runs: fi mkdir temp-cache - tar -xf $cache_path -C temp-cache + date + if [ "${{ inputs.target-platform }}" = "linux" ]; then + tar -xf $cache_path -C temp-cache + else + where choco + where 7z + dir "C:\Program Files\7-Zip" + 7z x $cache_path -o"temp-cache" + fi + date echo "Unzipped cache is $(du -sh temp-cache/src | cut -f1)" if [ -d "temp-cache/src" ]; then diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5f0183fee..b44b037a93 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -317,7 +317,7 @@ jobs: issues: read pull-requests: read uses: ./.github/workflows/pipeline-electron-build-and-test.yml - needs: setup + needs: checkout-windows if: ${{ needs.setup.outputs.src == 'true' && !inputs.skip-windows }} with: build-runs-on: electron-arc-windows-amd64-16core @@ -336,7 +336,7 @@ jobs: issues: read pull-requests: read uses: ./.github/workflows/pipeline-electron-build-and-test.yml - needs: setup + needs: checkout-windows if: ${{ needs.setup.outputs.src == 'true' && !inputs.skip-windows }} with: build-runs-on: electron-arc-windows-amd64-16core @@ -355,7 +355,7 @@ jobs: issues: read pull-requests: read uses: ./.github/workflows/pipeline-electron-build-and-test.yml - needs: setup + needs: checkout-windows if: ${{ needs.setup.outputs.src == 'true' && !inputs.skip-windows }} with: build-runs-on: electron-arc-windows-amd64-16core diff --git a/.github/workflows/pipeline-segment-electron-build.yml b/.github/workflows/pipeline-segment-electron-build.yml index 8f921e0300..629b785d7d 100644 --- a/.github/workflows/pipeline-segment-electron-build.yml +++ b/.github/workflows/pipeline-segment-electron-build.yml @@ -154,13 +154,13 @@ jobs: if: ${{ inputs.target-platform == 'macos' }} uses: ./src/electron/.github/actions/restore-cache-azcopy - name: Restore src cache via AKS - if: ${{ inputs.target-platform == 'linux' }} + if: ${{ inputs.target-platform != 'macos' }} uses: ./src/electron/.github/actions/restore-cache-aks - - name: Checkout the whole damm thing - if: ${{ inputs.target-platform == 'windows' }} - uses: ./src/electron/.github/actions/checkout - with: - use-cache: 'false' + # - name: Checkout the whole damm thing + # if: ${{ inputs.target-platform == 'windows' }} + # uses: ./src/electron/.github/actions/checkout + # with: + # use-cache: 'false' - name: Checkout Electron uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: