-
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
2fe15fe
commit 87cdb60
Showing
17 changed files
with
3,362 additions
and
74 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 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/ | ||
lingua-franca |
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 |
---|---|---|
@@ -1,25 +1,32 @@ | ||
[package] | ||
name = "lingo" | ||
version = "0.1.2" | ||
name = "lingua-franca" | ||
version = "0.2.0" | ||
edition = "2021" | ||
|
||
description = "Packagemanager for Lingua-Franca" | ||
homepage = "https://lf-lang.org" | ||
repository = "https://github.com/lf-lang/lingo" | ||
|
||
|
||
[[bin]] | ||
name = "lingo" | ||
publish = true | ||
path = "./src/main.rs" | ||
|
||
[dependencies] | ||
|
||
clap = { version = "4.1", features = ["derive"] } | ||
os-version = "0.2" | ||
|
||
serde = "*" | ||
serde_json = "*" | ||
serde_derive = "*" | ||
which = "*" | ||
regex = "1.8.4" | ||
lazy_static = "1.4.0" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
serde_derive = "1.0" | ||
which = "5.0" | ||
regex = "1.8" | ||
lazy_static = "1.4" | ||
rayon = "1.7" | ||
|
||
toml = {version = "0"} | ||
crossbeam = "*" | ||
|
||
termion = "1.5" | ||
git2 = "*" | ||
toml = {version = "0.8"} | ||
crossbeam = "0.8" | ||
termion = "2.0" | ||
git2 = "0.18" | ||
run_script = "0.10" | ||
tempfile = "*" | ||
tempfile = "3.0" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.