Skip to content

Commit

Permalink
Test installing from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed May 20, 2024
1 parent ffc1eb9 commit 66670fb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/repo-ghc-8.6-cabal-2.4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: install-hackage-ghc-8.6-cabal-2.4

# 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: ["2.4"]
ghc:
- "8.6"

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
- uses: actions/checkout@v4
with:
sparse-checkout: .

- name: Create sandbox
run: |
echo "$PWD/.cabal-sandbox/bin" >> $GITHUB_PATH
cabal v1-sandbox init
- name: Install Alex, Happy
run: |
cabal v1-install alex happy
- name: Install ogma
run: |
cabal v1-install ogma/ogma-**/ --enable-tests
cabal v1-install ogma/ogma-**/ --enable-tests --run-tests- j1

0 comments on commit 66670fb

Please sign in to comment.