chore: try using 7zip on Windows to extract tarball

This commit is contained in:
John Kleinschmidt
2024-11-04 16:01:20 -05:00
parent d6903f867b
commit c7432b6a37
3 changed files with 19 additions and 10 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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: