-
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.
adding github ci and fixed couple of bugs
- Loading branch information
1 parent
484e18a
commit 39ad982
Showing
25 changed files
with
2,277 additions
and
1,628 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,37 @@ | ||
name: Build toolchain | ||
description: Installs Dependencies and Compiles Lingo | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- 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 nightly cli | ||
export PATH="$HOME/.local/bin:$PATH" | ||
# going into lfc repo and checking out the vers | ||
cd ./lingua-franca | ||
git reset nightly | ||
cd .. | ||
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Test Lingo | ||
jobs: | ||
cpp-test: | ||
name: CPP Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
uses: ./.github/actions/environment | ||
- name: Integration Test Cpp | ||
run: | | ||
# copying Lingo.toml | ||
cp test/Lingo-Cpp.toml ./lingua-franca/test/Lingo.toml | ||
cd ./lingua-franca/test/ | ||
../../target/release/lingo build | ||
shell: bash | ||
typescript-test: | ||
name: TypeScript Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
uses: ./.github/actions/environment | ||
- name: Integration Test TypeScript | ||
run: | | ||
# copying Lingo.toml | ||
cp test/Lingo-TypeScript.toml ./lingua-franca/test/Lingo.toml | ||
cd ./lingua-franca/test/ | ||
../../target/release/lingo build | ||
shell: bash | ||
lfc-test: | ||
name: LFC Fallback Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
uses: ./.github/actions/environment | ||
- name: Integration Test TypeScript | ||
run: | | ||
# copying Lingo.toml | ||
cp test/Lingo-LFC.toml ./lingua-franca/test/Lingo.toml | ||
cd ./lingua-franca/test/ | ||
../../target/release/lingo build | ||
shell: bash | ||
|
This file was deleted.
Oops, something went wrong.
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,4 +19,4 @@ sandbox/ | |
build/ | ||
**/src-gen/ | ||
tmp/ | ||
lf-test | ||
lingua-franca |
Oops, something went wrong.