Add support for uploading and downloading host mar artifact in macOS build workflows

This commit is contained in:
mr. M
2025-01-27 23:44:34 +01:00
parent ca57fa391d
commit f9ec71ba58
2 changed files with 17 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ jobs:
echo "Tarballing DMG"
set -ex
mv ./dist/*.dmg ./zen-${{ matrix.arch }}-apple-darwin-dist.dmg
mv ./engine/obj-${{ matrix.arch }}-apple-darwin/dist/host/bin/mar ./zen-macos-host-mar
- name: Upload dist dmg
uses: actions/upload-artifact@v4
@@ -149,6 +150,14 @@ jobs:
name: zen-${{ matrix.arch }}-apple-darwin-dist.dmg
path: ./zen-${{ matrix.arch }}-apple-darwin-dist.dmg
- name: Upload host mar
uses: actions/upload-artifact@v4
if: matrix.arch == 'x86_64'
with:
retention-days: 1
name: zen-macos-host-mar
path: ./zen-macos-host-mar
- name: Upload build artifact (update manifests)
uses: actions/upload-artifact@v4
with:

View File

@@ -220,12 +220,20 @@ jobs:
--wait
xcrun stapler staple "zen.macos-universal.dmg"
- name: Download host mar
uses: actions/download-artifact@v4
with:
name: zen-macos-host-mar
- name: Package for mar
env:
JUST_MAR: true
run: |
export SURFER_PLATFORM="darwin"
export ZEN_RELEASE=1
# full path to zen-macos-host-mar
export MAR=$(pwd)/zen-macos-host-mar
echo "MAR=$MAR"
pnpm package
mv ./dist/output.mar ./macos.mar