From ffc1eb939ca626bcec3e38c092eb181a066a72fd Mon Sep 17 00:00:00 2001 From: Ivan Perez Date: Sun, 19 May 2024 23:08:05 +0000 Subject: [PATCH] CI script to install with GHC 9.2 and cabal 3.6 --- .../workflows/hackage-ghc-9.2-cabal-3.6.yml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/hackage-ghc-9.2-cabal-3.6.yml diff --git a/.github/workflows/hackage-ghc-9.2-cabal-3.6.yml b/.github/workflows/hackage-ghc-9.2-cabal-3.6.yml new file mode 100644 index 00000000..2937a4e3 --- /dev/null +++ b/.github/workflows/hackage-ghc-9.2-cabal-3.6.yml @@ -0,0 +1,48 @@ +name: install-hackage-ghc-9.2-cabal-3.6 + +# Trigger the workflow on push or pull request +on: + - pull_request + - push + +jobs: + cabal: + name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + cabal: ["3.6"] + ghc: + - "9.2" + + steps: + + - uses: haskell-actions/setup@main + id: setup-haskell-cabal + name: Setup Haskell + with: + ghc-version: ${{ matrix.ghc }} + cabal-version: ${{ matrix.cabal }} + + - name: Prepare environment + run: | + echo "$HOME/.ghcup/bin" >> $GITHUB_PATH + echo "$HOME/.cabal/bin" >> $GITHUB_PATH + + - name: Install dependencies + run: | + cabal install alex:alex + cabal install happy:happy + cabal install BNFC:bnfc + bnfc --version + alex --version + happy --version + + - name: Install ogma + run: | + cabal install ogma-cli + + - name: Run ogma to check that it is working + run: | + ogma --help