|
4 | 4 | branches: |
5 | 5 | - 'ghc-next*' |
6 | 6 | schedule: |
7 | | - - cron: '0 3 * * 5' |
| 7 | + - cron: '0 8 * * 6' # once a week. saturdays at 8am |
8 | 8 | jobs: |
9 | | - ghc-9-10: |
| 9 | + ghc-next: |
10 | 10 | name: ${{ matrix.os }} |
11 | 11 | runs-on: ${{ matrix.os }}-latest |
12 | 12 | strategy: |
13 | 13 | fail-fast: false |
14 | 14 | matrix: |
15 | 15 | os: [ubuntu, macos, windows] |
16 | 16 | steps: |
| 17 | + - uses: actions/checkout@v4 |
17 | 18 | - uses: haskell-actions/setup@v2 |
| 19 | + id: setup-haskell |
18 | 20 | with: |
19 | | - ghc-version: '9.8.1' |
20 | | - enable-stack: true |
21 | | - stack-version: '2.15.7' |
22 | | - # - name: Upgrade stack from git |
23 | | - # run: |- |
24 | | - # stack upgrade --git |
25 | | - # echo "$HOME/.local/bin" >> $GITHUB_PATH |
26 | | - # which stack |
27 | | - # stack --version |
28 | | - # shell: bash |
29 | | - - name: Install build tools |
| 21 | + ghc-version: 9.10.1 |
| 22 | + cabal-version: 'latest' |
| 23 | + - name: Install build tools (macOS) |
30 | 24 | run: brew install automake |
31 | 25 | if: matrix.os == 'macos' |
32 | | - - name: Configure |
33 | | - # e.g. Don't recursively delete '.stack-work' (`stack clean --full`) |
34 | | - run: echo "GHCLIB_AZURE='1'" >> $GITHUB_ENV |
| 26 | + - name: Configure msys2 (windows) |
35 | 27 | shell: bash |
36 | | - - name: Boot |
37 | 28 | run: |- |
38 | | - cabal update |
| 29 | + echo "MSYSTEM=CLANG64" >> $GITHUB_ENV |
| 30 | + echo "/c/mingw64/usr/bin" >> $GITHUB_PATH |
| 31 | + echo "/c/msys64/usr/bin" >> $GITHUB_PATH |
| 32 | + if: matrix.os == 'windows' |
| 33 | + - name: Run hlint-from-scratch (windows) |
| 34 | + shell: C:\msys64\usr\bin\bash.exe --noprofile --norc -e -o pipefail '{0}' |
| 35 | + run: |- |
| 36 | + GHCLIB_AZURE=1; export GHCLIB_AZURE |
| 37 | + pacman -S autoconf automake-wrapper make patch python tar mintty --noconfirm |
39 | 38 | git clone https://github.com/shayne-fletcher/hlint-from-scratch.git |
40 | 39 | hlint-from-scratch/hlint-from-scratch.sh --init="$HOME/project" |
| 40 | + hlint-from-scratch/hlint-from-scratch.sh --ghc-flavor="ghc-master" --no-checkout |
| 41 | + if: matrix.os == 'windows' |
| 42 | + - name: Run hlint-from-scratch (unix) |
41 | 43 | shell: bash |
42 | | - - name: Build and Test ('ghc-next') |
43 | | - run: hlint-from-scratch/hlint-from-scratch.sh --ghc-flavor="" --stack-yaml=stack-exact.yaml --resolver=ghc-9.8.1 --no-checkout |
44 | | - shell: bash |
| 44 | + run: |- |
| 45 | + GHCLIB_AZURE=1; export GHCLIB_AZURE |
| 46 | + git clone https://github.com/shayne-fletcher/hlint-from-scratch.git |
| 47 | + hlint-from-scratch/hlint-from-scratch.sh --init="$HOME/project" |
| 48 | + hlint-from-scratch/hlint-from-scratch.sh --ghc-flavor="ghc-master" --no-checkout |
| 49 | + if: matrix.os == 'ubuntu' || matrix.os == 'macos' |
0 commit comments