Skip to content

Commit

Permalink
Fix github action (#2)
Browse files Browse the repository at this point in the history
* Checkout submodules in github action
* Install Alex and Happy
* Split Hadrian building from the rest
* Enable parallel build
* Disable docs
  • Loading branch information
hsyl20 authored Nov 15, 2024
1 parent a5ab63c commit e433f2f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"

- uses: haskell-actions/setup@v2
id: setup
Expand All @@ -30,11 +32,20 @@ jobs:
cabal-version: "latest"
cabal-update: true

- name: Install Alex and Happy
run: |
cabal install alex
cabal install happy
- name: Configure the build
run: |
./boot
./configure
- name: Build
- name: Build Hadrian
run: |
./hadrian/build --version
- name: Build the bindist
run: |
./hadrian/build --flavour=release binary-dist-dir
./hadrian/build --flavour=release -j binary-dist-dir --docs=none

0 comments on commit e433f2f

Please sign in to comment.