-
Notifications
You must be signed in to change notification settings - Fork 199
45 lines (45 loc) · 1.32 KB
/
ghc-next.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: ghc-next-from-scratch
on:
push:
branches:
- 'ghc-next*'
schedule:
- cron: '0 3 * * 5'
jobs:
ghc-9-10:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.6.4'
enable-stack: true
stack-version: 'latest'
- name: Upgrade stack from git
run: |-
stack upgrade --git
echo "$HOME/.local/bin" >> $GITHUB_PATH
which stack
stack --version
shell: bash
- name:
Install build tools
run: brew install automake
if: matrix.os == 'macos'
- name: Configure
# e.g. Don't recursively delete '.stack-work' (`stack clean --full`)
run: echo "GHCLIB_AZURE='1'" >> $GITHUB_ENV
shell: bash
- name: Boot
run: |-
cabal update
git clone https://github.com/shayne-fletcher/hlint-from-scratch.git
hlint-from-scratch/hlint-from-scratch.sh --init="$HOME/project"
shell: bash
- name: Build and Test ('ghc-next')
run: hlint-from-scratch/hlint-from-scratch.sh --ghc-flavor="" --stack-yaml=stack-exact.yaml --resolver=ghc-9.6.4 --no-checkout
shell: bash