@@ -69,11 +69,68 @@ jobs:
6969 path : |
7070 ./*.${{matrix.format}}
7171
72+ build-macos-packages-amd64 :
73+ name : build macOS intel packages
74+ strategy :
75+ fail-fast : true
76+ matrix :
77+ config :
78+ - format : productbuild
79+ arch : intel
80+ ext : pkg
81+ runs-on : macos-12
82+ steps :
83+ - uses : actions/checkout@v3
84+ with :
85+ submodules : true
86+
87+ - name : Build the ${{matrix.config.format}} packages
88+ run : |
89+ cmake . -DCPACK_GENERATOR=${{ matrix.config.format }}
90+ echo ${{ matrix.config.format }} | xargs -I{} cpack -G {}
91+
92+ - name : Store the master package artifacts
93+ uses : actions/upload-artifact@v3
94+ with :
95+ name : ${{ matrix.config.format }}-${{matrix.config.arch}}
96+ path : |
97+ ./*-${{matrix.config.arch}}.${{matrix.config.ext}}
98+
99+ build-macos-packages-arm64 :
100+ name : build macOS Apple Silicon packages
101+ strategy :
102+ fail-fast : true
103+ matrix :
104+ config :
105+ - format : productbuild
106+ arch : apple
107+ ext : pkg
108+ runs-on : macos-14
109+ steps :
110+ - uses : actions/checkout@v3
111+ with :
112+ submodules : true
113+
114+ - name : Build the ${{matrix.config.format}} packages
115+ run : |
116+ cmake . -DCPACK_GENERATOR=${{ matrix.config.format }}
117+ echo ${{ matrix.config.format }} | xargs -I{} cpack -G {}
118+
119+ - name : Store the master package artifacts
120+ uses : actions/upload-artifact@v3
121+ with :
122+ name : ${{ matrix.config.format }}-${{matrix.config.arch}}
123+ path : |
124+ ./*-${{matrix.config.arch}}.${{matrix.config.ext}}
125+
72126 release :
73127 name : Create release and upload packages
74128 needs :
75129 - build-distro-packages-amd64
76130 - build-distro-packages-arm64
131+ - build-macos-packages-amd64
132+ - build-macos-packages-arm64
133+
77134 runs-on : ubuntu-latest
78135 permissions :
79136 contents : write
0 commit comments