Checkout submodules in github action #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# Trigger the workflow on push or pull request, but only for the master branch | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: [master] | |
jobs: | |
cabal: | |
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
ghc: ['9.6.5'] # bootstrapping compiler | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haskell-actions/setup@v2 | |
id: setup | |
name: Setup Haskell tools | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: "latest" | |
cabal-update: true | |
- name: Checkout submodules | |
run: | | |
git submodules update --init --recursive | |
- name: Configure the build | |
run: | | |
./boot | |
./configure | |
- name: Build | |
run: | | |
./hadrian/build --flavour=release binary-dist-dir |