Skip to content

Commit 0f1d93f

Browse files
committed
ci: Run macos builds on the correct architecture
1 parent 16b4cea commit 0f1d93f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/haskell.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
- name: Install GHC and Cabal
3838
uses: input-output-hk/actions/devx@latest
3939
with:
40-
platform: ${{ matrix.os == 'ubuntu-latest' && 'x86_64-linux' || 'x86_64-darwin' }}
40+
platform:
41+
${{ (runner.os == 'Linux' && 'x86_64-linux') ||
42+
(runner.os == 'macOS' && runner.arch == 'X64' && 'x86_64-darwin') ||
43+
(runner.os == 'macOS' && runner.arch == 'ARM64' && 'aarch64-darwin')
44+
}}
4145
target-platform: ""
4246
compiler-nix-name: ${{ matrix.compiler-nix-name }}
4347
minimal: false

0 commit comments

Comments
 (0)