Skip to content

Commit

Permalink
ci: fix cache prefix, add check for ssh debug
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde committed Jan 9, 2024
1 parent 61a5222 commit 2f0ea0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
path: src/electron
- name: Enable ssh Debugging
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3
with:
detached: true
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
cache: yarn
cache-dependency-path: src/electron/yarn.lock
- name: Enable ssh Debugging
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3
with:
detached: true
Expand Down Expand Up @@ -187,7 +189,7 @@ jobs:
- name: Generate DEPS Hash
run: |
node src/electron/script/generate-deps-hash.js && cat src/electron/.depshash-target
echo "DEPSHASH=$(shasum src/electron/.depshash | cut -f1 -d' ')" >> $GITHUB_ENV
echo "DEPSHASH=v1-src-cache-$(shasum src/electron/.depshash | cut -f1 -d' ')" >> $GITHUB_ENV
- name: Download Src Cache
# The cache will always exist here as a result of the checkout job
# Either it was uploaded to Azure in the checkout job for this commit
Expand All @@ -198,10 +200,10 @@ jobs:
--account-key $AZURE_STORAGE_KEY \
--container-name $AZURE_STORAGE_CONTAINER_NAME \
--name $DEPSHASH \
--file $DEPSHASH.tar.gz \
echo "Downloaded cache is $(du -sh $DEPSHASH.tar.gz | cut -f1)"
--file $DEPSHASH \
- name: Unzip and Ensure Src Cache
run: |
echo "Downloaded cache is $(du -sh $DEPSHASH.tar.gz | cut -f1)"
mkdir temp-cache
tar -xzvf $DEPSHASH.tar.gz -d temp-cache
echo "Unzipped cache is $(du -sh temp-cache/src | cut -f1)"
Expand Down

0 comments on commit 2f0ea0d

Please sign in to comment.