Skip to content

Commit

Permalink
Merge pull request #108 from turion/dev_ghc_9.4
Browse files Browse the repository at this point in the history
Dev ghc 9.4
  • Loading branch information
turion committed Jul 11, 2023
2 parents a0fd430 + b6f8c7b commit 3eb0105
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 615 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
on: [push, pull_request]
name: build
jobs:
fourmolu:
name: "Run fourmolu"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Set up and run fourmolu
run: |
nix shell nixpkgs#haskellPackages.fourmolu --command fourmolu --mode check .
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ['8.8.4','8.10.7','9.0.2','9.2.4']
ghc: ['8.8.4','8.10.7','9.0.2','9.2.5','9.4.5']
os: [ubuntu-latest]
name: Haskell GHC ${{ matrix.ghc }} cabal + stack
env:
cabal_project_freeze: cabal.project.${{ matrix.ghc }}.freeze
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v2.0.2
Expand All @@ -19,12 +29,6 @@ jobs:
enable-stack: true
- name: Install dependencies
run: sudo apt-get install -y libxml2-utils libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libpulse-dev libblas-dev liblapack-dev libasound2-dev wget
- name: Install fourmolu
run: |
wget https://github.com/fourmolu/fourmolu/releases/download/v0.9.0.0/fourmolu-0.9.0.0-linux-x86_64
chmod u+x fourmolu-0.9.0.0-linux-x86_64
- name: Check formatting with fourmolu
run: ./fourmolu-0.9.0.0-linux-x86_64 --mode check $(git ls-files '*.hs')
- name: Cabal update
run: cabal update
- name: Cache Cabal build artifacts
Expand All @@ -33,18 +37,18 @@ jobs:
path: |
${{ steps.setup-haskell-build.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-cabal-${{ matrix.ghc }}-${{ hashFiles(env.cabal_project_freeze) }}
key: ${{ runner.os }}-cabal-${{ matrix.ghc }}
restore-keys: |
${{ runner.os }}-cabal-${{ matrix.ghc }}
- name: Cabal build dependencies
run: |
cabal build all --enable-tests --only-dependencies --project-file=cabal.project.${{ matrix.ghc }}
cabal build all --enable-tests --only-dependencies
- name: Cabal build packages
run: |
cabal build all --enable-tests --project-file=cabal.project.${{ matrix.ghc }}
cabal build all --enable-tests
- name: Cabal test
run: |
cabal test all --enable-tests --test-show-details=Always --project-file=cabal.project.${{ matrix.ghc }}
cabal test all --enable-tests --test-show-details=Always
- name: Cache stack build artifacts
uses: freckle/stack-cache-action@v1.0.1
with:
Expand Down
1 change: 0 additions & 1 deletion cabal.project.8.10.7

This file was deleted.

196 changes: 0 additions & 196 deletions cabal.project.8.10.7.freeze

This file was deleted.

1 change: 0 additions & 1 deletion cabal.project.8.8.4

This file was deleted.

Loading

0 comments on commit 3eb0105

Please sign in to comment.