forked from prusa3d/PrusaSlicer
-
-
Notifications
You must be signed in to change notification settings - Fork 520
35 lines (31 loc) · 1.33 KB
/
ccpp_mac_rc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: C/C++ Release candidate macos
on:
push:
branches:
- rc
- debug_macos
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: build deps & slicer
run: ./BuildMacOS.sh
- name: copy zstd
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/libzstd.1.dylib
- name: relink zstd
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/${{ github.event.repository.name }}
- name: create the dmg
run: |
hdiutil create -ov -fs HFS+ -volname ${{ github.event.repository.name }} -srcfolder "build/pack/${{ github.event.repository.name }}" temp.dmg
hdiutil convert temp.dmg -format UDZO -o ${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/[email protected]
with:
name: rc_macos.app
path: build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app
- name: Upload artifact
uses: actions/[email protected]
with:
name: rc_macos.dmg
path: ${{ github.event.repository.name }}.dmg