Skip to content

Commit 84f5f28

Browse files
authored
Merge pull request #166 from haskellari/update-ci
Update CI
2 parents 3fe64dc + c2feab5 commit 84f5f28

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20250722
11+
# version: 0.19.20260209
1212
#
13-
# REGENDATA ("0.19.20250722",["github","cabal.project"])
13+
# REGENDATA ("0.19.20260209",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -20,6 +20,11 @@ on:
2020
pull_request:
2121
branches:
2222
- master
23+
merge_group:
24+
branches:
25+
- master
26+
workflow_dispatch:
27+
{}
2328
jobs:
2429
linux:
2530
name: Haskell-CI - Linux - ${{ matrix.compiler }}
@@ -101,8 +106,8 @@ jobs:
101106
chmod a+x "$HOME/.ghcup/bin/ghcup"
102107
- name: Install cabal-install
103108
run: |
104-
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
109+
"$HOME/.ghcup/bin/ghcup" install cabal 3.16.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
110+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.16.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
106111
- name: Install GHC (GHCup)
107112
if: matrix.setup-method == 'ghcup'
108113
run: |
@@ -178,7 +183,7 @@ jobs:
178183
chmod a+x $HOME/.cabal/bin/cabal-plan
179184
cabal-plan --version
180185
- name: checkout
181-
uses: actions/checkout@v4
186+
uses: actions/checkout@v5
182187
with:
183188
path: source
184189
- name: initial cabal.project for sdist

.github/workflows/simple.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [macos-latest, windows-latest]
17-
ghc: ['9.4.8','9.6.6','9.8.2','9.10.1']
17+
# Older GHCs need LLVM on macos-latest (ARM)
18+
ghc: ['9.4.8','9.6.6','9.8.2','9.10.2']
1819
fail-fast: false
1920
timeout-minutes:
2021
60
@@ -29,18 +30,19 @@ jobs:
2930
uses: haskell-actions/setup@v2
3031
with:
3132
ghc-version: ${{ matrix.ghc }}
32-
cabal-version: '3.12.1.0'
33+
cabal-version: '3.10.2.0'
3334

3435
- name: Set up PostgreSQL
35-
uses: ikalnytskyi/action-setup-postgres@v6
36+
uses: ikalnytskyi/action-setup-postgres@v8
3637
id: postgres
3738
with:
3839
username: ci
3940
password: sw0rdfish
4041
database: test
42+
postgres-version: "14"
4143

4244
- name: Checkout
43-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4446

4547
- name: Cache
4648
uses: actions/cache@v4
@@ -49,6 +51,20 @@ jobs:
4951
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
5052
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
5153

54+
- name: cabal.project (win)
55+
if: matrix.os == 'windows-latest'
56+
run: cp cabal.project.win cabal.project
57+
58+
- name: cabal.project (macos)
59+
if: matrix.os == 'macos-latest'
60+
run: cp cabal.project.macos cabal.project
61+
62+
- name: ghc-pkg dump
63+
run: ghc-pkg list
64+
65+
- name: Dependencies
66+
run: cabal build all --enable-tests --only-dependencies
67+
5268
- name: Build
5369
run: cabal build all --enable-tests
5470

cabal.project.macos

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
packages: .
2+
tests: true
3+
4+
constraints: unix installed
5+
6+
package postgresql-libpq
7+
flags: -use-pkg-config

cabal.project.win

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
packages: .
2+
tests: true
3+
4+
constraints: Win32 installed
5+
6+
package postgresql-libpq
7+
flags: -use-pkg-config

0 commit comments

Comments
 (0)