Skip to content

Commit a3d41c0

Browse files
committed
[ci] used devx action.
1 parent f71577c commit a3d41c0

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
push:
1010
branches: [master]
1111

12+
workflow_dispatch:
13+
1214
jobs:
1315
cabal:
1416
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
@@ -17,31 +19,30 @@ jobs:
1719
fail-fast: false
1820
matrix:
1921
os: [ubuntu-latest]
20-
ghc: ['9.8.4'] # bootstrapping compiler
22+
ghc: ['98'] # bootstrapping compiler
2123

2224
steps:
2325
- uses: actions/checkout@v4
2426
with:
2527
submodules: "recursive"
2628

27-
- uses: haskell-actions/setup@v2
28-
id: setup
29-
name: Setup Haskell tools
29+
- uses: input-output-hk/actions/devx@latest
3030
with:
31-
ghc-version: ${{ matrix.ghc }}
32-
cabal-version: "latest"
33-
cabal-update: true
31+
platform: 'x86_64-linux'
32+
compiler-nix-name: 'ghc98'
33+
minimal: true
34+
ghc: true
3435

35-
- name: Configure the build
36-
run: ./boot
36+
- name: Update hackage
37+
shell: devx {0}
38+
run: cabal update
3739

38-
- name: Build patched cabal
39-
run: make cabal
40+
- name: Configure the build
41+
shell: devx {0}
42+
run: ./configure
4043

4144
- name: Build the bindist
42-
env:
43-
CC: gcc
44-
CXX: g++
45+
shell: devx {0}
4546
run: make
4647

4748
- name: Upload artifacts
@@ -51,6 +52,7 @@ jobs:
5152
path: _build/bindist
5253

5354
- name: Run the testsuite
55+
shell: devx {0}
5456
run: make test
5557

5658
- name: Upload test results

0 commit comments

Comments
 (0)