Skip to content

This GitHub Action automatically detects the latest GHC version compatible with your Haskell project's base dependency constraint in package.yaml.

Notifications You must be signed in to change notification settings

webdevred/get-supported-ghc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Supported GHC Version

Test Get Supported GHC Version Action

This GitHub Action automatically detects the latest GHC (Glasgow Haskell Compiler) version compatible with your Haskell project's base dependency constraint in package.yaml.

Useful for CI/CD workflows where you want to install a GHC version that satisfies your project's dependency bounds.

Inputs

Input Description Default Required
package-yaml-path Path to your package.yaml file relative to the repo root package.yaml No

Outputs

Output Description
ghc-version The latest compatible GHC version to install

Example Usage

name: CI

on: [push, pull_request]

jobs:
  setup:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Get latest supported GHC version
        id: get-ghc
        uses: webdevred/[email protected]
        with:
          package-yaml-path: examples/package.yaml
      - name: Set up GHC latest and Cabal
        id: setup-ghc
        uses: haskell-actions/[email protected]
        with:
          ghc-version: "${{ steps.get-ghc.outputs.ghc-version }}"

About

This GitHub Action automatically detects the latest GHC version compatible with your Haskell project's base dependency constraint in package.yaml.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •