Skip to content

Testing

Testing #40

Workflow file for this run

on:
pull_request:
push:
branches:
- master
name: Test Lingo
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Integration Test
run: |
# setting java17
ls -alh /usr/lib/jvm/
# export JAVA_HOME=/usr/lib/jvm/java-17-temurin-amd64
# building lingo
cargo b --release
# installing lingua-franca tests
git clone https://github.com/lf-lang/lingua-franca.git ./lingua-franca
# installing lfc
curl -Ls https://install.lf-lang.org | bash -s cli
export PATH="$HOME/.local/bin:$PATH"
# copying Lingo.toml
cp test/Lingo-Cpp.toml ./lingua-franca/test/Lingo.toml
cd ./lingua-franca/test/Cpp
../../../target/release/lingo build
shell: bash