-
Notifications
You must be signed in to change notification settings - Fork 24
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
74a76b1
commit 5dc3ec6
Showing
3 changed files
with
72 additions
and
39 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,43 @@ | ||
|
||
name: Set up workspace | ||
description: Check out repositories, download software, install LFC, etc. | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Checkout benchmark repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lf-lang/benchmarks-lingua-franca | ||
ref: continuous-benchmarking # FIXME: delete this line after merge | ||
|
||
- name: Checkout Lingua Franca repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lf-lang/lingua-franca | ||
path: lf | ||
|
||
- name: Prepare LF build environment | ||
uses: ./lf/.github/actions/prepare-build-env | ||
|
||
- name: Checkout current version of reactor-c | ||
uses: actions/checkout@v2 | ||
with: | ||
path: lf/org.lflang/src/lib/c/reactor-c | ||
|
||
- name: Install Python dependencies | ||
run: pip3 install -r runner/requirements.txt | ||
|
||
- name: Build lfc | ||
run: | | ||
cd lf | ||
./gradlew buildLfc | ||
- name: Set LF_PATH and LF_BENCHMARKS_PATH environmental variable | ||
run: | | ||
echo "LF_PATH=$GITHUB_WORKSPACE/lf" >> $GITHUB_ENV | ||
echo "LF_BENCHMARKS_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV |
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,23 @@ | ||
on: | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
example_comment_pr: | ||
runs-on: ubuntu-latest | ||
name: An example job to comment a PR | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Comment PR | ||
uses: thollander/actions-comment-pull-request@v1 | ||
with: | ||
message: | | ||
Hello world ! :wave: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Run C Benchmarks | ||
# run: | | ||
# python3 runner/run_benchmark.py -m continue_on_error=True iterations=12 \ | ||
# benchmark="glob(*)" target=lf-c size=fast \ | ||
# target.params.scheduler=GEDF_NP,NP,adaptive threads=1,3,6,12,24 |