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: