Skip to content

Commit ed26c7a

Browse files
committed
Add github workflow
1 parent a021a49 commit ed26c7a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Diff for: .github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request, but only for the master branch
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
push:
10+
branches: [master]
11+
12+
jobs:
13+
cabal:
14+
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
ghc: ['9.6.5'] # bootstrapping compiler
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: "recursive"
26+
27+
- uses: haskell-actions/setup@v2
28+
id: setup
29+
name: Setup Haskell tools
30+
with:
31+
ghc-version: ${{ matrix.ghc }}
32+
cabal-version: "latest"
33+
cabal-update: true
34+
35+
- name: Install Alex and Happy
36+
run: |
37+
cabal install alex
38+
cabal install happy
39+
40+
- name: Configure the build
41+
run: |
42+
./boot
43+
./configure
44+
45+
- name: Build Hadrian
46+
run: |
47+
./hadrian/build --version
48+
49+
- name: Build the bindist
50+
run: |
51+
./hadrian/build --flavour=release -j binary-dist-dir --docs=none

0 commit comments

Comments
 (0)