Skip to content

Merge branch 'develop-outputs-data' into develop. Close #219. #172

Merge branch 'develop-outputs-data' into develop. Close #219.

Merge branch 'develop-outputs-data' into develop. Close #219. #172

name: ros-ghc-8.6-cabal-2.4
# Trigger the workflow on push or pull request
on:
- pull_request
- push
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
cabal: ["3.12"]
ghc:
- "9.10"
steps:
- uses: haskell-actions/setup@main
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Prepare environment
run: |
echo "$HOME/.ghcup/bin" >> $GITHUB_PATH
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: Install dependencies
run: |
cabal install --lib copilot copilot-c99 copilot-language copilot-theorem \
copilot-libraries copilot-interpreter
- name: Install ogma
run: |
cabal install ogma-cli:ogma
- name: Generate ROS app
run: |
ogma ros --app-target-dir demo --input-file ogma-cli/examples/ros-copilot/document.json --input-format ogma-cli/examples/ros-copilot/json-format.cfg --prop-format literal --variable-db ogma-cli/examples/ros-copilot/vars-db.json
cd demo/copilot/src/
runhaskell Copilot.hs
cd ../../
find .
docker build .