Only remove temp dirs, erase coverage

This commit is contained in:
mrg 2021-03-01 10:50:37 -08:00
parent 5b6bfce7e0
commit 27c197026f
1 changed files with 7 additions and 6 deletions

View File

@ -8,8 +8,9 @@ jobs:
run: | run: |
echo "Cleaning up previous run" echo "Cleaning up previous run"
echo "github.workspace = ${{ github.workspace }}" echo "github.workspace = ${{ github.workspace }}"
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE" rm -rf "${{ github.workspace }}/scn4me_subm_temp"
rm -rf "${{ github.workspace }}" rm -rf "${{ github.workspace }}/freepdk45_temp"
python3-coverage erase
checkout_code: checkout_code:
needs: [coverage_cleanup] needs: [coverage_cleanup]
runs-on: self-hosted runs-on: self-hosted
@ -25,14 +26,14 @@ jobs:
. /home/github-runner/setup-paths.sh . /home/github-runner/setup-paths.sh
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_temp"
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 16 -t scn4m_subm python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 16 -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_temp/*/
freepdk45: freepdk45:
needs: [checkout_code] needs: [checkout_code]
runs-on: self-hosted runs-on: self-hosted
@ -42,14 +43,14 @@ jobs:
. /home/github-runner/setup-paths.sh . /home/github-runner/setup-paths.sh
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_temp"
python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 16 -t freepdk45 python3-coverage run -p $OPENRAM_HOME/tests/regress.py -j 16 -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_temp/*/
coverage_stats: coverage_stats:
if: ${{ always() }} if: ${{ always() }}
needs: [scn4me_subm, freepdk45] needs: [scn4me_subm, freepdk45]