Skip to content

Sparsebit improvements #122

Sparsebit improvements

Sparsebit improvements #122

Workflow file for this run

name: Build project and run tests
on: [pull_request, push]
jobs:
build_and_test:
runs-on: ubuntu-22.04
if: github.repository_owner == 'TroupeLang'
env:
STACK_OPTS: "--system-ghc"
TROUPE: ${{github.workspace}}
TERM: "xterm-color"
steps:
- name: install missing dependency for ghc
# https://gitlab.haskell.org/ghc/ghc/-/issues/15444
run: |
sudo apt-get update
sudo apt-get install -y libnuma-dev diffutils
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
ghc-version: '9.2.7' # Exact version of ghc to use
# cabal-version: 'latest'. Omitted, but defaults to 'latest'
enable-stack: true
# stack-version: 'latest'
# - run: |
# echo "STACK_OPTS=--system-ghc" >> $GITHUB_ENV
# echo "TROUPE=$GITHUB_WORKSPACE" >> $GITHUB_ENV
# echo "TERM=xterm-color" >> $GITHUB_ENV
- name: compile the compiler
run: make stack
- uses: actions/setup-node@v2
- run: yarn install
- name: compile the runtime
run: make rt
- name: compile libs
run: make libs
- name: compile service
run: make service
- name: unit tests
run: make test