Testing #18
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: Sandbox | |
jobs: | |
check: | |
name: Sandbox | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- id: get-release | |
name: get-latest-release | |
uses: pozetroninc/github-action-get-latest-release@master | |
with: | |
repository: lf-lang/lingua-franca | |
- name: Integration Test | |
run: | | |
sudo apt remove openjdk-11-jre-headless | |
sudo apt remove temurin-11-jdk | |
sudo apt remove temurin-8-jdk | |
sudo apt install openjdk-17-jre-headless | |
sudo apt list jre | |
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/bin/java | |
echo "$JAVA_HOME" | |
ls -alh /usr/lib/jvm/ | |
java -version | |
cargo b --release | |
git clone https://github.com/lf-lang/lingua-franca.git ./lf-test | |
curl -L0 https://github.com/lf-lang/lingua-franca/releases/download/v0.5.0/lf-cli-0.5.0.tar.gz --output ./lf-release.tar.gz | |
tar -xvf ./lf-release.tar.gz | |
cp test/Lingo-Cpp.toml ./lf-test/test/Cpp/Lingo.toml | |
cd ./lf-test/test/Cpp | |
../../../target/release/lingo build --lfc ../../../lf-cli-0.5.0/bin/lfc | |
shell: bash | |