mirror of https://github.com/VLSIDA/OpenRAM.git
Upload workflow
This commit is contained in:
parent
a57a443a4c
commit
ef78ad7249
|
|
@ -1,7 +1,15 @@
|
||||||
name: ci
|
name: ci
|
||||||
on: [push]
|
on: [push]
|
||||||
|
coverage_cleanup:
|
||||||
|
if: ${{ always() }}
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Coverage cleanup
|
||||||
|
run: |
|
||||||
|
python3-coverage erase
|
||||||
jobs:
|
jobs:
|
||||||
scn4me_subm:
|
scn4me_subm:
|
||||||
|
needs: [coverage_cleaup]
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
|
|
@ -12,14 +20,16 @@ jobs:
|
||||||
export OPENRAM_HOME="`pwd`/compiler"
|
export OPENRAM_HOME="`pwd`/compiler"
|
||||||
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
||||||
export OPENRAM_TMP="${{ github.workspace }}/scn4me_subm"
|
export OPENRAM_TMP="${{ github.workspace }}/scn4me_subm"
|
||||||
|
rm -rf $OPENRAM_TMP
|
||||||
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 20 -t scn4m_subm
|
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 20 -t scn4m_subm
|
||||||
- name: Archive
|
- name: Archive
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: scn4me_subm Archives
|
name: scn4me_subm Archives
|
||||||
path: ${{ github.workspace }}/scn4me_subm/
|
path: ${{ github.workspace }}/scn4me_subm/*/
|
||||||
freepdk45:
|
freepdk45:
|
||||||
|
needs: [coverage_cleaup]
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
|
|
@ -30,14 +40,15 @@ jobs:
|
||||||
export OPENRAM_HOME="`pwd`/compiler"
|
export OPENRAM_HOME="`pwd`/compiler"
|
||||||
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
export OPENRAM_TECH="`pwd`/technology:/software/PDKs/skywater-tech"
|
||||||
export OPENRAM_TMP="${{ github.workspace }}/freepdk45"
|
export OPENRAM_TMP="${{ github.workspace }}/freepdk45"
|
||||||
|
rm -rf $OPENRAM_TMP
|
||||||
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 20 -t freepdk45
|
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 20 -t freepdk45
|
||||||
- name: Archive
|
- name: Archive
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FreePDK45 Archives
|
name: FreePDK45 Archives
|
||||||
path: ${{ github.workspace }}/freepdk45/
|
path: ${{ github.workspace }}/freepdk45/*/
|
||||||
coverage:
|
coverage_stats:
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
needs: [scn4me_subm, freepdk45]
|
needs: [scn4me_subm, freepdk45]
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
@ -52,4 +63,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: code-coverage-report
|
name: code-coverage-report
|
||||||
path: ${{ github.workspace }}/coverage_html/
|
path: ${{ github.workspace }}/coverage_html/
|
||||||
|
- name: Cleanup
|
||||||
|
run: |
|
||||||
|
python3-coverage erase
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue