Skip to content

Add Test Suite

Add Test Suite #93

Workflow file for this run

on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
racket-variant: ["CS"]
racket-version: ["stable"]
name: Build on ${{ matrix.racket-variant }} Racket
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Racket
uses: Bogdanp/[email protected]
with:
architecture: 'x64'
distribution: 'full'
variant: ${{ matrix.racket-variant }}
version: ${{ matrix.racket-version }}
- name: Install Package and its Dependencies
run: raco pkg install --auto --batch
- name: Check compilation
run: raco exe --gui main.rkt
- name: Create C lib for FFI
run: gcc -c -fPIC utilities/bplustree.c -o utilities/bplustree.o && gcc utilities/bplustree.o -shared -o libbplustree.so
- name: Check test
run: raco test main.rkt