Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jul 12, 2022
1 parent 74a76b1 commit 8ed049e
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 34 deletions.
37 changes: 37 additions & 0 deletions .github/actions/set-up-workspace/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

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 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
41 changes: 7 additions & 34 deletions .github/workflows/continuous-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,20 @@ jobs:
runs-on: ubuntu-latest #FIXME: change to self-hosted after russel is set up.

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: 3e7ad67bee34910241e30008db22bac80eafa8ce # FIXME: delete this line after merge
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
- name: Set up workspace
uses: ./.github/actions/set-up-workspace

- name: Run C Benchmarks
- name: Run C Benchmarks (multithreaded)
run: |
python3 runner/run_benchmark.py -m continue_on_error=True iterations=12 benchmark="glob(*)" target=lf-c
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=0
- name: Collect results
run: python3 runner/collect_results.py latest continuous_benchmarking_results.json
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/user-requested-benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: Checkout benchmark repository
# uses: actions/checkout@v2
# with:
# repository: lf-lang/benchmarks-lingua-franca
# ref: continuous-benchmarking # FIXME: delete this line after merge

# - 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

0 comments on commit 8ed049e

Please sign in to comment.