Skip to content

Commit

Permalink
CI: Use relative path for node, try to fix hdiutil issue
Browse files Browse the repository at this point in the history
Enable verbose logging for hdiutil and per-arch image files to possibly prevent resource busy error
  • Loading branch information
Simran-B authored Dec 4, 2024
1 parent 65970f5 commit a2c677e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ jobs:
run: |
$DOWNLOAD_TOOL https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
tar -xf node-v16.20.2-linux-x64.tar.xz
cp -a ./node-v16.20.2-linux-x64/bin/node /opt/olive/node16
/opt/olive/node16 --version
cp -a node-v16.20.2-linux-x64/bin/node node16
pwd
node16 --version
- name: Checkout Source Code
env:
Expand All @@ -70,6 +71,7 @@ jobs:
$DOWNLOAD_TOOL https://raw.githubusercontent.com/actions/checkout/refs/tags/v3/dist/index.js
$DOWNLOAD_TOOL https://raw.githubusercontent.com/actions/checkout/refs/tags/v3/dist/problem-matcher.json
cd ..
pwd
'${{ runner.workspace }}/node16' ./checkout-v3/index.js
#uses: actions/checkout@v3
#with:
Expand Down Expand Up @@ -157,7 +159,8 @@ jobs:
cd upload-artifact-v3
$DOWNLOAD_TOOL https://raw.githubusercontent.com/actions/upload-artifact/refs/tags/v3/dist/index.js
cd ..
/opt/olive/node16 ./upload-artifact-v3/index.js
pwd
node16 ./upload-artifact-v3/index.js
continue-on-error: true
#uses: actions/upload-artifact@v3
#with:
Expand Down Expand Up @@ -491,8 +494,8 @@ jobs:
run: |
ln -s /Applications Applications
cd ..
hdiutil create img.dmg -volname Olive -fs HFS+ -srcfolder deploy
hdiutil convert img.dmg -format UDZO -o $PKGNAME.dmg
hdiutil --hdiutil-verbose create img-${{ matrix.os-arch }}.dmg -volname Olive -fs HFS+ -srcfolder deploy
hdiutil --hdiutil-verbose convert img-${{ matrix.os-arch }}.dmg -format UDZO -o $PKGNAME.dmg
- name: Upload Artifact to GitHub
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit a2c677e

Please sign in to comment.