Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Setting GHC/Cabal versions doesn't work with macOS #43

@johnjcamilleri

Description

@johnjcamilleri

Take this workflow file:

name: Main
on: push
jobs:
  main:
    runs-on: macos-latest
    steps:
    - uses: actions/[email protected]
      with:
        ghc-version: 8.6.5
        cabal-version: 2.4
    - run: ghc --version
    - run: cabal --version

The output I get when running the action is:

Run actions/[email protected]
Preparing to setup a Haskell environment
Resolved 2.4 to 2.4.1.0
Installing ghc version 8.6.5
Installing cabal version 2.4.1.0
Setting up cabal
Run ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.2
Run cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library 

When I try replacing macos-latest with ubuntu-latest, I get the output I expect:

Run ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
Run cabal --version
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library 

You can see my MWE in action here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions