Skip to content

Commit

Permalink
feat: create separate .dmg files for intel and M-series processors
Browse files Browse the repository at this point in the history
First and foremost, this allows ultrahdr to compile. But it's also
useful to get better arch-specific optimizations into tev's binary
release.
  • Loading branch information
Tom94 committed Mar 6, 2025
1 parent 1f65761 commit 7b77b13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,23 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Build
run: scripts/create-dmg.sh -DTEV_DEPLOY=1 -DTEV_SUPPORT_HEIC=${{ env.SUPPORT_HEIC }}
- name: Upload .dmg
- name: Build x86_64
run: scripts/create-dmg.sh -DTEV_DEPLOY=1 -DTEV_SUPPORT_HEIC=${{ env.SUPPORT_HEIC }} -DCMAKE_OSX_ARCHITECTURES="x86_64"
- name: Rename x86_64 .dmg
run: mv tev.dmg tev-intel.dmg
- name: Build arm64
run: scripts/create-dmg.sh -DTEV_DEPLOY=1 -DTEV_SUPPORT_HEIC=${{ env.SUPPORT_HEIC }} -DCMAKE_OSX_ARCHITECTURES="arm64"
- name: Upload x86_64 .dmg
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: macOS installer (Intel)
path: tev-intel.dmg
- name: Upload arm64 .dmg
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: macOS installer
name: macOS installer (M-series)
path: tev.dmg

build_windows:
Expand Down
1 change: 0 additions & 1 deletion scripts/create-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ MACOSX_DEPLOYMENT_TARGET=10.15
cmake \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
"$@" \
../.. || exit 1
make -j || exit 1
Expand Down

0 comments on commit 7b77b13

Please sign in to comment.