Skip to content

Commit

Permalink
Add github actions for ghc-8.10 and ghc-9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Mar 17, 2023
1 parent f03825c commit 12afc9e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cabal.project.local.ci
@@ -0,0 +1,5 @@
package cardano-crypto-praos
flags: -external-libsodium-vrf

package HsOpenSSL
flags: +use-pkg-config
20 changes: 17 additions & 3 deletions .github/workflows/haskell.yml
Expand Up @@ -18,24 +18,38 @@ jobs:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'

- name: Other Packages
run: |
sudo apt update
sudo apt purge aspnetcore* dotnet* firefox powershell
sudo apt upgrade
sudo apt install -y pkg-config libsodium-dev libsecp256k1-dev libsystemd-dev
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}

- name: Copy cabal.project.local
shell: bash
run: |
cp .github/workflows/cabal.project.local.ci cabal.project.local
echo "# cabal.project.local"
cat cabal.project.local
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ hashFiles('cabal.project.freeze') }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: |
cabal build all --enable-tests --enable-benchmarks
cabal build all --enable-tests --enable-benchmarks -j
- name: Test
run: |
Expand Down

0 comments on commit 12afc9e

Please sign in to comment.