-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 989 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: gha-sandbox
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-14]
ghc-version: ["9.4.8"]
cabal: [ '3.10.3.0' ]
steps:
- name: Install LLVM 15
shell: bash
run: |
brew install llvm@15
LD="$(brew --prefix llvm@15)/bin/ld.lld"
$LD --version
echo "LD=$LD" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
submodules: true
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: ${{ matrix.cabal }}
- name: sed hackery
shell: bash
run: sed -i -E '' 's/(\("Merge\ objects\ command",")[^"]+("\))/\1ld\2/' $(ghc --print-libdir)/settings
- shell: bash
run: ghc --info
- name: Build
shell: bash
run: cabal build