Skip to content

Commit

Permalink
Fixes CI (#7)
Browse files Browse the repository at this point in the history
* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update setup.py

* Update setup.py

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update setup.py

* Update pythonpackage.yml

* Update pythonpackage.yml

* Update run.py
  • Loading branch information
hofstee committed Nov 8, 2019
1 parent 4d01dc7 commit 7a7f4f2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ jobs:
build:

runs-on: ubuntu-latest
container:
image: docker://keyiz/garnet-flow


strategy:
max-parallel: 4

Expand All @@ -18,17 +16,23 @@ jobs:
run: |
git submodule init
git submodule update
- name: Install dependencies
- name: Create bitstreams
run: |
sudo apt install -y libmpfr-dev libmpc-dev
conda create -n ci python=3.7
source $CONDA/bin/activate
conda activate ci
pip install -r deps/garnet/requirements.txt
pip install deps/*.whl
pip install genesis2
- name: Create bitstream
run: |
python generate-bitstreams.py
export OS_NAME="linux"
curl -s -L https://github.com/rdaly525/coreir/releases/latest | grep "href.*coreir-${OS_NAME}.tar.gz" | cut -d \" -f 2 | xargs -I {} wget https://github.com"{}"
mkdir coreir_release;
tar -xf coreir-${OS_NAME}.tar.gz -C coreir_release --strip-components 1;
cd coreir_release && sudo make install && cd ..
pip install -e .
python run.py --width 32 --height 16
- name: Report application utilization
run: |
apt install bsdmainutils
cat apps/utilization.csv | column -t -s ',' -n
- name: Upload artifact
uses: actions/upload-artifact@master
Expand Down
2 changes: 2 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def generate_bitstreams():

def generate_testbenches(apps):
for app in apps:
os.makedirs(f"{args.app_root}/{app}/test", exist_ok=True)

subprocess.run(
[
"python",
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
python_requires='>=3.7',
install_requires = [
"astor",
"cocotb @ git+ssh://github.com/thofstee/cocotb.git@timescale#egg=cocotb",
"cocotb @ git+http://github.com/thofstee/cocotb.git@timescale#egg=cocotb",
"genesis2",
"numpy",
"pycoreir",
# "pycoreir",
],
)

0 comments on commit 7a7f4f2

Please sign in to comment.