adding record reflection - new function recordExtend and a correspond… #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |