Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Sep 26, 2023
1 parent ed352e8 commit deb3739
Show file tree
Hide file tree
Showing 4 changed files with 1,738 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sandbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 install openjdk-17-jre-headless
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
cp test/Lingo-Cpp.toml ./lf-test/test/Cpp/Lingo.toml
cd ./lf-test/test/Cpp
../../../target/release/lingo build --lfc ../../../lf-cli-0.4.0/bin/lfc
shell: bash

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ sandbox/
build/
**/src-gen/
tmp/
lf-test
11 changes: 11 additions & 0 deletions test.sh
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
Loading

0 comments on commit deb3739

Please sign in to comment.