mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 01:24:39 +02:00
GitHub Actions CI flow.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
name: ci
|
||||
on: [push]
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v1
|
||||
- name: Hello
|
||||
run: echo "Hello, world!"
|
||||
scn4me_subm:
|
||||
# Run this first since it is faster
|
||||
needs: setup
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: SCMOS test
|
||||
run: |
|
||||
. /home/github-runner/setup-paths.sh
|
||||
export OPENRAM_HOME="`pwd`/compiler"
|
||||
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
||||
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 32 -t scn4m_subm
|
||||
freepdk45:
|
||||
# Run this second and only if the first passes
|
||||
needs: scn4me_subm
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: FreePDK45 test
|
||||
run: |
|
||||
. /home/github-runner/setup-paths.sh
|
||||
export OPENRAM_HOME="`pwd`/compiler"
|
||||
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
||||
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 32 -t freepdk45
|
||||
coverage:
|
||||
needs: [scn4me_subm, freepdk45]
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Coverage stats
|
||||
run: |
|
||||
python3-coverage combine
|
||||
python3-coverage report
|
||||
python3-coverage html -d coverage_html
|
||||
- name: Archive coverage
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: code-coverage-report
|
||||
path: coverage_html/
|
||||
|
||||
Reference in New Issue
Block a user