From fb566f2d9eee4873deaa07f1e3c527a9bc38a602 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:54:39 -0700 Subject: [PATCH] ci: attempt to make dmg for macOS --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9143394d2..91f292b0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -376,7 +376,7 @@ jobs: ctest -C ${{ matrix.build-type }} -V if: matrix.os-arch == 'x86_64' # ARM64 tests naturally won't be able to run on x86_64 runners - - name: Create Package + - name: Bundle Application working-directory: ${{ runner.workspace }}/build shell: bash run: | @@ -444,9 +444,18 @@ jobs: # Sign application codesign --deep --sign "Developer ID Application: Olive Studios LLC" $BUNDLE_NAME + - name: Deploy + shell: bash + working-directory: ${{ runner.workspace }}/build/deploy + 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 + - name: Upload Artifact to GitHub uses: actions/upload-artifact@v2 continue-on-error: true with: name: ${{ env.PKGNAME }} - path: ${{ runner.workspace }}/build/deploy + path: ${{ runner.workspace }}/build/${{ env.PKGNAME }}.dmg