Skip to content

update changelog

update changelog #7241

Workflow file for this run

name: Test
on: [push]
# Ensures that only the latest commit of a PR can execute the actions.
# Useful for cancelling job when a sequence of commits are quickly added.
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
interpreter:
name: Test Interpreter
runs-on: ubuntu-latest
container: ghcr.io/cucapra/calyx:0.3.0
steps:
- name: Copy fud configuration
run: |
mkdir -p $HOME/.config
cp -r /root/.config/* $HOME/.config
- name: Update Dahlia
working-directory: /home/dahlia
run: |
git pull
sbt "; assembly"
- name: Checkout commit that triggered run
working-directory: /home/calyx
run: |
git fetch --all
git checkout $GITHUB_SHA
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --manifest-path /home/calyx/interp/Cargo.toml
- name: Runt tests
working-directory: /home/calyx
run: |
# Run the remaining tests
runt interp -x 'relay' -d -o fail
- name: Source code tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path /home/calyx/interp/Cargo.toml
- name: Source code doc tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path /home/calyx/interp/Cargo.toml --doc
compiler:
name: Test Compiler
runs-on: ubuntu-latest
container: ghcr.io/cucapra/calyx:0.3.0
steps:
- name: Copy fud configuration
run: |
mkdir -p $HOME/.config
cp -r /root/.config/* $HOME/.config
- name: Update Dahlia
working-directory: /home/dahlia
run: |
git pull
sbt "; assembly"
- name: Checkout commit that triggered run
working-directory: /home/calyx
run: |
git fetch --all
git checkout $GITHUB_SHA
- name: Install calyx-py & MrXL
working-directory: /home/calyx
run: |
cd calyx-py
FLIT_ROOT_INSTALL=1 flit install --symlink
cd -
cd frontends/mrxl
FLIT_ROOT_INSTALL=1 flit install --symlink
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path /home/calyx/Cargo.toml
# - name: Source code doc tests
# uses: actions-rs/cargo@v1
# with:
# command: test
# args: --manifest-path /home/calyx/calyx/Cargo.toml --doc lib
- name: Runt tests
working-directory: /home/calyx
run: |
runt -x 'cocotb' -d -o fail -j 1 --max-futures 5
# Run these sequentially because they might fail intermittently
- name: Cocotb tests
working-directory: /home/calyx
run: |
runt -i 'cocotb' -d -o fail -j 1 --max-futures 1
- name: Run Python Tests
working-directory: /home/calyx
run: pytest fud/fud/stages/verilator/tests/numeric_types.py
evaluation:
name: Polybench Integration
runs-on: ubuntu-latest
container: ghcr.io/cucapra/calyx:0.3.0
steps:
- name: Copy and clean up fud configuration
run: |
mkdir -p $HOME/.config
cp -r /root/.config/* $HOME/.config
- name: Update Dahlia
working-directory: /home/dahlia
run: |
git pull
sbt "; assembly"
- name: Checkout commit that triggered run
working-directory: /home/calyx
run: |
git fetch --all
git checkout $GITHUB_SHA
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path /home/calyx/Cargo.toml
- name: Checkout calyx-evaluation
working-directory: /home
run: |
git clone https://github.com/cucapra/calyx-evaluation.git calyx-evaluation
- name: Run benchmarks
working-directory: /home/calyx-evaluation/benchmarks
run: |
unset JAVA_TOOL_OPTIONS
# Run the main benchmarks
runt -i Correctness -d
# Run the unrolled benchmarks
runt -i Unrolled -d
# Run the interpreter benchmarks
# runt -i Interpreter -d