File tree Expand file tree Collapse file tree 13 files changed +2567
-15
lines changed Expand file tree Collapse file tree 13 files changed +2567
-15
lines changed Original file line number Diff line number Diff line change 1
1
# Changes
2
2
3
+ ## 2.1.0
4
+
5
+ - Support macOS ARM64
6
+ - Bump GitLab SaaS hardware from ` macos-11-xcode-12 ` (x86_64) to ` macos-12-xcode-14 ` (arm64)
7
+
3
8
## Pending (1.2.1)
4
9
5
10
> The minimum Dune language requirement is ` (lang dune 3.0) ` . Please update
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ Run one of:
198
198
``` bash
199
199
# macOS/Intel (or macOS/ARM64 with Rosetta emulator)
200
200
sh ci/setup-dkml/pc/setup-dkml-darwin_x86_64.sh
201
+ # -or- macOS/ARM64
202
+ sh ci/setup-dkml/pc/setup-dkml-darwin_arm64.sh
201
203
202
204
# Linux on 64-bit Intel/AMD. Docker is required.
203
205
# - Running this from macOS/Intel with Docker or macOS/Silicon with Docker will also work
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ DkMLBumpPackagesParticipant_TestPromote(REL_FILENAMES
25
25
test /gh-windows/pre/action.yml
26
26
test /gl/setup-dkml.gitlab-ci.yml
27
27
test /pc/setup-dkml-darwin_x86_64.sh
28
+ test /pc/setup-dkml-darwin_arm64.sh
28
29
test /pc/setup-dkml-linux_x86.sh
29
30
test /pc/setup-dkml-linux_x86_64.sh
30
31
test /pc/setup-dkml-windows_x86.ps1
Original file line number Diff line number Diff line change @@ -311,10 +311,10 @@ let matrix =
311
311
[
312
312
(" abi_pattern" , Jg_types. Tstr {| macos- darwin_all| });
313
313
(" gh_os" , Jg_types. Tstr " macos-latest" );
314
- (" gl_image" , Jg_types. Tstr " macos-11 -xcode-12 " );
314
+ (" gl_image" , Jg_types. Tstr " macos-12 -xcode-14 " );
315
315
(" gh_unix_shell" , Jg_types. Tstr {| sh| });
316
316
(" bootstrap_opam_version" , bootstrap_opam_version);
317
- (" dkml_host_abi" , Jg_types. Tstr {| darwin_x86_64 | });
317
+ (" dkml_host_abi" , Jg_types. Tstr {| darwin_arm64 | });
318
318
(" gh_opam_root" , Jg_types. Tstr {|/ Users / runner/. opam| });
319
319
(" gl_opam_root" , Jg_types. Tstr {|$ {CI_PROJECT_DIR }/. ci/ o| });
320
320
(" pc_opam_root" , Jg_types. Tstr {|$ {PC_PROJECT_DIR }/. ci/ o| });
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ let () =
41
41
let usage =
42
42
Printf. sprintf
43
43
" %s [--output-windows_x86 OUTPUT_FILE.ps1] [--output-windows_x86_64 \
44
- OUTPUT_FILE.ps1] [--output-darwin_x86_64 OUTPUT_FILE.sh] \
44
+ OUTPUT_FILE.ps1] [--output-darwin_x86_64 OUTPUT_FILE.sh] [--output-darwin_arm64 OUTPUT_FILE.sh] \
45
45
[--output-linux_x86 OUTPUT_FILE.sh] [--output-linux_x86_64 \
46
46
OUTPUT_FILE.sh]\n \
47
47
At least one --output-<ABI> option must be selected." exe_name
@@ -74,6 +74,8 @@ let () =
74
74
" Output Powershell script for Windows 64-bit" );
75
75
output_unix_abi_arg ~dkml_host_abi: " darwin_x86_64"
76
76
~descr: " macOS/Intel (or macOS/ARM64 with Rosetta emulator)" ;
77
+ output_unix_abi_arg ~dkml_host_abi: " darwin_arm64"
78
+ ~descr: " macOS/ARM64" ;
77
79
output_unix_abi_arg ~dkml_host_abi: " linux_x86"
78
80
~descr: " Linux on 32-bit Intel/AMD" ;
79
81
output_unix_abi_arg ~dkml_host_abi: " linux_x86_64"
Original file line number Diff line number Diff line change @@ -165,6 +165,23 @@ let scaffold_pc ~output_dir () =
165
165
(action
166
166
(diff setup- dkml- darwin_x86_64.sh setup- dkml- darwin_x86_64- gen.sh)))
167
167
168
+ ; darwin_arm64
169
+
170
+ (rule
171
+ (target setup- dkml- darwin_arm64- gen.sh)
172
+ (enabled_if %% {bin- available :pc- setup- dkml})
173
+ (action
174
+ (setenv
175
+ OCAMLRUNPARAM
176
+ b
177
+ (run pc- setup- dkml -- output- darwin_arm64 %% {target}))))
178
+
179
+ (rule
180
+ (alias gen- dkml)
181
+ (enabled_if %% {bin- available :pc- setup- dkml})
182
+ (action
183
+ (diff setup- dkml- darwin_arm64.sh setup- dkml- darwin_arm64- gen.sh)))
184
+
168
185
; linux_x86
169
186
170
187
(rule
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ runs:
20
20
# Select correct Darwin matrix variables
21
21
case "${{ matrix.dkml_host_abi }}" in
22
22
23
- darwin_x86_64 )
23
+ darwin_arm64 )
24
24
dkml_host_os='darwin';
25
25
opam_root_cacheable='/Users/runner/.opam';
26
26
abi_pattern='macos-darwin_all';
27
27
gh_os='macos-latest';
28
28
gh_unix_shell='sh';
29
29
bootstrap_opam_version='2.2.0-alpha-20221228';
30
- dkml_host_abi='darwin_x86_64 ';
30
+ dkml_host_abi='darwin_arm64 ';
31
31
opam_root='/Users/runner/.opam' ;;
32
32
33
33
*) echo "FATAL: Unsupported dkml_host_abi=$dkml_host_abi in Darwin action.yml"; exit 107 ;;
Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ runs:
61
61
# Select correct Darwin matrix variables
62
62
case "${{ matrix.dkml_host_abi }}" in
63
63
64
- darwin_x86_64 )
64
+ darwin_arm64 )
65
65
dkml_host_os='darwin';
66
66
opam_root_cacheable='/Users/runner/.opam';
67
67
abi_pattern='macos-darwin_all';
68
68
gh_os='macos-latest';
69
69
gh_unix_shell='sh';
70
70
bootstrap_opam_version='2.2.0-alpha-20221228';
71
- dkml_host_abi='darwin_x86_64 ';
71
+ dkml_host_abi='darwin_arm64 ';
72
72
opam_root='/Users/runner/.opam' ;;
73
73
74
74
*) echo "FATAL: Unsupported dkml_host_abi=$dkml_host_abi in Darwin action.yml"; exit 107 ;;
Original file line number Diff line number Diff line change @@ -2370,9 +2370,9 @@ variables:
2370
2370
{ dkml_host_os: 'darwin',
2371
2371
opam_root_cacheable : ' ${CI_PROJECT_DIR}/.ci/o' ,
2372
2372
abi_pattern : ' macos-darwin_all' ,
2373
- gl_image : ' macos-11 -xcode-12 ' ,
2373
+ gl_image : ' macos-12 -xcode-14 ' ,
2374
2374
bootstrap_opam_version : ' 2.2.0-alpha-20221228' ,
2375
- dkml_host_abi : ' darwin_x86_64 ' ,
2375
+ dkml_host_abi : ' darwin_arm64 ' ,
2376
2376
opam_root : ' ${CI_PROJECT_DIR}/.ci/o' },
2377
2377
2378
2378
]
Original file line number Diff line number Diff line change 43
43
(action
44
44
(diff setup-dkml-darwin_x86_64.sh setup-dkml-darwin_x86_64-gen.sh)))
45
45
46
+ ; darwin_arm64
47
+
48
+ (rule
49
+ (target setup-dkml-darwin_arm64-gen.sh)
50
+ (action
51
+ (setenv
52
+ OCAMLRUNPARAM
53
+ b
54
+ (run ../../src/pc_setup_dkml.exe --output-darwin_arm64 %{target}))))
55
+
56
+ (rule
57
+ (alias runtest)
58
+ (action
59
+ (diff setup-dkml-darwin_arm64.sh setup-dkml-darwin_arm64-gen.sh)))
60
+
46
61
; linux_x86
47
62
48
63
(rule
You can’t perform that action at this time.
0 commit comments