-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed352e8
commit b766452
Showing
6 changed files
with
10,699 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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: | | ||
# uninstalling java11 and installing java17 | ||
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 | ||
# 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 -L0 https://github.com/lf-lang/lingua-franca/releases/download/v0.5.1/lf-cli-0.5.1-Linux-x86_64.tar.gz --output ./lf-release.tar.gz | ||
tar -xvf ./lf-release.tar.gz | ||
# copying Lingo.toml | ||
cp test/Lingo-Cpp.toml ./lf-test/test/Lingo.toml | ||
cd ./lf-test/test/Cpp | ||
../../../target/release/lingo build --lfc ../../../lf-cli-0.5.1-Linux-x86_64/bin/lfc | ||
shell: bash | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ sandbox/ | |
build/ | ||
**/src-gen/ | ||
tmp/ | ||
lf-test |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
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.4.0/lf-cli-0.4.0.tar.gz --output ./lf-release.tar.gz | ||
tar -xvf ./lf-release.tar.gz | ||
#tar -xf ./lf-release.tar.gz | ||
#sed -i 's/#!//bin//bash/#!//run//current-system//sw//bin//bash//' lf-cli-0.4.0/bin/lfc | ||
cp test/Lingo-Cpp.toml ./lf-test/test/Cpp/Lingo.toml | ||
cd ./lf-test/test/Cpp | ||
ls ../../../ | ||
ls | ||
../../../target/release/lingo build --lfc ../../../lf-cli-0.4.0/bin/lfc |
Oops, something went wrong.