Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Aug 30, 2024
1 parent aeb7532 commit 4c31d42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Haddock documentation"
name: Haddocks

on:
schedule:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
haddocks:
name: "Haddocks"
name: Haddocks

runs-on: ${{ matrix.os }}

Expand All @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["9.10.1"]
ghc: ["9.10"]
os: [ubuntu-latest]

permissions:
Expand Down Expand Up @@ -54,13 +54,10 @@ jobs:
- name: Update Hackage index
run: cabal update

- name: Build plan
run: cabal build --dry-run --enable-tests all

- name: Run pandoc
run: pandoc --from=markdown_github --to=haddock --output=README.haddock io-classes/README.md io-sim/README.md
run: pandoc --from=gfm --to=haddock --output=README.haddock io-classes/README.md io-sim/README.md

- name: Build Haddock documentation 🔧
- name: Build haddocks 🔧
run: |
cabal haddock-project --prologue=README.haddock --hackage all
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.10.3.0"
cabal-version: "3.12.1.0"

- name: Install LLVM (macOS)
if: runner.os == 'macOS' && matrix.ghc == '8.10'
Expand Down Expand Up @@ -85,8 +85,7 @@ jobs:

- name: Build dependencies
run: |
cabal build --only-dependencies io-classes
cabal build --only-dependencies io-sim
cabal build --only-dependencies all
- uses: actions/cache/save@v4
name: "Save cabal store"
Expand Down

0 comments on commit 4c31d42

Please sign in to comment.