Skip to content

feat: add CompiledPlugin and call_with_host_context #57

feat: add CompiledPlugin and call_with_host_context

feat: add CompiledPlugin and call_with_host_context #57

Workflow file for this run

on:
pull_request:
workflow_dispatch:
name: Haskell CI
jobs:
test:
name: Haskell
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: ./.github/actions/libextism
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Haskell env
uses: haskell-actions/setup@v2
with:
enable-stack: false
- name: 'Set up HLint'
uses: haskell-actions/hlint-setup@v2
if: matrix.os == 'ubuntu-latest'
- name: Build Haskell Host SDK
run: |
uname -a
cabal update
cabal build
- name: Test Haskell SDK
run: |
DYLD_LIBRARY_PATH=/usr/local/lib LD_LIBRARY_PATH=/usr/local/lib cabal test
- name: 'Run HLint'
if: matrix.os == 'ubuntu-latest'
uses: haskell-actions/hlint-run@v2
with:
path: src/
fail-on: warning
- name: 'Run HLint'
if: matrix.os == 'ubuntu-latest'
uses: haskell-actions/hlint-run@v2
with:
path: manifest/
fail-on: warning