Skip to content

Merge pull request #39 from felixwiemuth/sparsebit-improvements #123

Merge pull request #39 from felixwiemuth/sparsebit-improvements

Merge pull request #39 from felixwiemuth/sparsebit-improvements #123

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