From a2c677e278f7d47731df7af0bdfef9238cf3a119 Mon Sep 17 00:00:00 2001 From: Simran Date: Wed, 4 Dec 2024 15:35:44 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebb56232b..234a67e92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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