12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- os : [ubuntu-22.04, macos-11, windows-2022]
15
+ os :
16
+ - ubuntu-22.04
17
+ - macos-11 # Intel
18
+ - macos-13-xlarge # Apple silicon
19
+ - windows-2022
16
20
ghc-version :
17
21
- " 8.8"
18
22
- " 8.10"
23
27
ghc-version : " 8.10"
24
28
- os : macos-11
25
29
ghc-version : " 9.0"
30
+ - os : macos-13-xlarge
31
+ ghc-version : " 8.8"
32
+ - os : macos-13-xlarge
33
+ ghc-version : " 8.10"
34
+ - os : macos-13-xlarge
35
+ ghc-version : " 9.0"
26
36
- os : windows-2022
27
37
ghc-version : " 8.10"
28
38
- os : windows-2022
52
62
%APPDATA%\cabal\store
53
63
%APPDATA%\stack
54
64
key : stack-${{ matrix.os }}-ghc-${{ matrix.version }}
65
+ - name : Install Haskell Stack (if not installed)
66
+ shell : bash
67
+ run : |
68
+ if ! command -v stack > /dev/null; then
69
+ curl -sSL https://get.haskellstack.org/ | sh
70
+ fi
55
71
- name : Set up resolver
56
72
shell : bash
57
73
run : |
@@ -148,7 +164,11 @@ jobs:
148
164
strategy :
149
165
fail-fast : false
150
166
matrix :
151
- os : [ubuntu-22.04, macos-11, windows-2022]
167
+ os :
168
+ - ubuntu-22.04
169
+ - macos-11 # Intel
170
+ - macos-13-xlarge # Apple silicon
171
+ - windows-2022
152
172
steps :
153
173
- uses : actions/checkout@v3
154
174
- uses : denoland/setup-deno@v1
@@ -309,10 +329,14 @@ jobs:
309
329
runs-on : ubuntu-22.04
310
330
steps :
311
331
- uses : actions/checkout@v3
332
+ - uses : actions/download-artifact@v3
333
+ with :
334
+ name : binaries-macos-13-xlarge-ghc-9.2
335
+ path : /tmp/binaries-macos-arm64
312
336
- uses : actions/download-artifact@v3
313
337
with :
314
338
name : binaries-macos-11-ghc-9.2
315
- path : /tmp/binaries-macos
339
+ path : /tmp/binaries-macos-x86_64
316
340
- uses : actions/download-artifact@v3
317
341
with :
318
342
name : binaries-windows-2022-ghc-9.2
@@ -332,8 +356,14 @@ jobs:
332
356
cp "$GITHUB_WORKSPACE/"{LICENSE,README.md,CHANGES.md} ./
333
357
tar cvfj /tmp/dists/seonbi.linux-x86_64.tar.bz2 *
334
358
popd
335
- # macOS
336
- pushd /tmp/binaries-macos
359
+ # macOS (Apple silicon)
360
+ pushd /tmp/binaries-macos-arm64
361
+ chmod +x *
362
+ cp "$GITHUB_WORKSPACE/"{LICENSE,README.md,CHANGES.md} ./
363
+ tar cvfj /tmp/dists/seonbi.macos-arm64.tar.bz2 *
364
+ popd
365
+ # macOS (Intel)
366
+ pushd /tmp/binaries-macos-x86_64
337
367
chmod +x *
338
368
cp "$GITHUB_WORKSPACE/"{LICENSE,README.md,CHANGES.md} ./
339
369
tar cvfj /tmp/dists/seonbi.macos-x86_64.tar.bz2 *
0 commit comments