CI: Use relative path for node, try to fix hdiutil issue
Enable verbose logging for hdiutil and per-arch image files to possibly prevent resource busy error
This commit is contained in:
@@ -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:
|
||||
@@ -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:
|
||||
@@ -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:
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user