Testing #38
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
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 | |
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 | |
# building lingo | |
cargo b --release | |
# installing lingua-franca tests | |
git clone https://github.com/lf-lang/lingua-franca.git ./lf-test | |
# 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 ./lf-test/test/Lingo.toml | |
ls -alh | |
cd ./lf-test/test/Cpp | |
../../../target/release/lingo build | |
shell: bash | |