forked from prusa3d/PrusaSlicer
-
-
Notifications
You must be signed in to change notification settings - Fork 527
78 lines (73 loc) · 2.02 KB
/
ccpp_mac.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: C/C++ Nightly macos
on:
push:
branches:
- Nigthly
- nightly_dev
- nightly_master
- debug_macos
jobs:
build_dep:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Install Autoconf
run: |
brew update
brew install autoconf
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: mkdir in deps
run: mkdir deps/build
- name: dep cache
id: cache-action
uses: actions/cache@v3
with:
key: macos_intel_2.7
path: deps/build/destdir
- if: steps.cache-action.outputs.cache-hit != 'true'
name: build deps if new cache
run: ./BuildMacOS.sh -d
build:
runs-on: macos-13
needs: build_dep
steps:
- uses: actions/checkout@v3
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: dep cache
id: cache-action
uses: actions/cache@v3
with:
key: macos_intel_2.7
path: deps/build/destdir
- name: build slicer
run: ./BuildMacOS.sh -siv
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: nightly_${{ github.event.repository.name }}-macOS-intel.tgz
path: build/${{ github.event.repository.name }}-macOS-intel.tgz
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: nightly_${{ github.event.repository.name }}-macOS-intel.dmg
path: build/${{ github.event.repository.name }}-macOS-intel.dmg