50
50
-DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
51
51
-DEXTRA_CXXFLAGS=-flto=full
52
52
with_pgo : false
53
-
53
+ - job_name : macOS arm64
54
+ os : macos-15
55
+ arch : arm64
56
+ bootstrap_cmake_flags : >-
57
+ -DBUILD_LTO_LIBS=ON
58
+ -DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
59
+ extra_cmake_flags : >-
60
+ -DBUILD_LTO_LIBS=ON
61
+ -DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
62
+ -DEXTRA_CXXFLAGS=-flto=full
63
+ with_pgo : false
64
+ llvm_version : 17.0.6
54
65
- job_name : Windows x64
55
66
os : windows-2022
56
67
arch : x64
66
77
runs-on : ${{ matrix.os }}
67
78
timeout-minutes : 150
68
79
env :
69
- MACOSX_DEPLOYMENT_TARGET : 10.12
80
+ MACOSX_DEPLOYMENT_TARGET : ${{ matrix.arch == 'arm64' && '11.0' || ' 10.12' }}
70
81
steps :
71
82
- uses : actions/checkout@v3
72
83
with :
76
87
uses : ./.github/actions/1-setup
77
88
with :
78
89
clang_version : ${{ runner.os == 'Windows' && '16.0.6' || env.CLANG_VERSION }}
79
- llvm_version : ${{ env.LLVM_VERSION }}
90
+ llvm_version : ${{ matrix.llvm_version || env.LLVM_VERSION }}
80
91
arch : ${{ matrix.arch }}
81
92
- name : Build bootstrap LDC
82
93
if : matrix.os != 'macos-15'
@@ -129,18 +140,6 @@ jobs:
129
140
matrix :
130
141
include :
131
142
132
- - job_name : macOS arm64
133
- host_os : macos-15
134
- os : osx
135
- arch : arm64
136
- bootstrap_cmake_flags : -DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
137
- # see native macOS job comment for extra flags (https://github.com/ldc-developers/ldc/issues/4462)
138
- extra_cmake_flags : >-
139
- -DBUILD_LTO_LIBS=ON
140
- -DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
141
- -DEXTRA_CXXFLAGS=-flto=full
142
- with_pgo : false
143
-
144
143
- job_name : Android armv7a
145
144
host_os : ubuntu-20.04
146
145
os : android
@@ -160,8 +159,6 @@ jobs:
160
159
if : startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master'
161
160
runs-on : ${{ matrix.host_os }}
162
161
timeout-minutes : 60
163
- env :
164
- MACOSX_DEPLOYMENT_TARGET : 11.0
165
162
steps :
166
163
- uses : actions/checkout@v4
167
164
with :
@@ -195,11 +192,6 @@ jobs:
195
192
uses : ./.github/actions/5-install
196
193
with :
197
194
cross_compiling : true
198
- - name : ' macOS: Cross-compile iOS libraries, copy to install dir & extend ldc2.conf'
199
- if : matrix.os == 'osx'
200
- uses : ./.github/actions/5a-ios
201
- with :
202
- arch : ${{ matrix.arch }}
203
195
- name : ' Android: Cross-compile ${{ matrix.android_x86_arch }} libraries & copy to install dir'
204
196
if : matrix.os == 'android'
205
197
uses : ./.github/actions/5a-android-x86
@@ -217,9 +209,7 @@ jobs:
217
209
name : macOS universal
218
210
runs-on : macos-latest
219
211
timeout-minutes : 30
220
- needs :
221
- - build-native
222
- - build-cross
212
+ needs : build-native
223
213
steps :
224
214
- uses : actions/checkout@v4
225
215
- name : Merge x86_64 & arm64 packages to universal one
0 commit comments