Skip to content

Add devenv

Add devenv #1312

Workflow file for this run

name: Malgo CI
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
# check-format:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# ghc: ["9.4.5"]
# os: [ubuntu-latest]
# steps:
# - uses: actions/checkout@v2
# - name: Cache .cabal
# uses: actions/cache@v3
# with:
# path: |
# ~/.cabal/packages
# ~/.cabal/store
# dist-newstyle
# key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
# restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
# - uses: haskell/actions/setup@v2
# with:
# ghc-version:
# ${{ matrix.ghc }}
# cabal-version: "3.10.1.0"
# - name: Install fourmolu
# run: |
# cabal install fourmolu-0.13.0.0 --ignore-project
# - name: Check formatting
# run: |
# fourmolu --mode check $(find src app benchmarks test -name '*.hs')
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["9.6.2"]
os: [ubuntu-latest]
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y libgc-dev
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 15
- uses: actions/checkout@v2
- name: Cache .cabal
uses: actions/cache@v3
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- uses: haskell/actions/setup@v2
with:
ghc-version:
${{ matrix.ghc }}
cabal-version: "3.10.1.0"
- name: Install dependencies
run: |
cabal build --only-dependencies
- name: GHC ${{matrix.ghc}} Build
run: |
cabal build
- name: Run tests
run: |
mkdir -p $HOME/.local/share/malgo/base
./scripts/install_malgo_internal.sh
cabal test