summaryrefslogtreecommitdiff
path: root/.github/workflows/setup-oss-cad-suite/action.yml
diff options
context:
space:
mode:
authormergify[bot]2022-12-20 15:53:29 +0000
committerGitHub2022-12-20 15:53:29 +0000
commitb913a75beb10adf4421d22ae386cbb29d144b774 (patch)
tree60c0668d01d0cf94b37f12c1ad148cc673fd4734 /.github/workflows/setup-oss-cad-suite/action.yml
parentfb6ff513f42187c600c57fcaed162110404e8cf6 (diff)
DRY out CI (backport #2903) (#2905)
* DRY out CI (#2903) * Minor tweaks to setup-oss-cad-suite * Switch espresso installation to composite action * Switch circt installation to composite action (cherry picked from commit dbd5f48a884a236f95c8476d56e28ca911b64a8d) # Conflicts: # .github/workflows/test.yml * resolve backport conflicts Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to '.github/workflows/setup-oss-cad-suite/action.yml')
-rw-r--r--.github/workflows/setup-oss-cad-suite/action.yml24
1 files changed, 19 insertions, 5 deletions
diff --git a/.github/workflows/setup-oss-cad-suite/action.yml b/.github/workflows/setup-oss-cad-suite/action.yml
index 9383d56b..63d70e92 100644
--- a/.github/workflows/setup-oss-cad-suite/action.yml
+++ b/.github/workflows/setup-oss-cad-suite/action.yml
@@ -1,14 +1,28 @@
name: Setup OSS CAD Suite
+inputs:
+ version:
+ description: 'version to install'
+ required: false
+ default: '2021-11-09'
+
runs:
using: composite
steps:
- - name: Install Tabby OSS Cad Suite
- shell: bash
- env:
- VERSION: 2021-11-09
+ - id: cache-oss-cad-suite
+ uses: actions/cache@v3
+ with:
+ path: oss-cad-suite
+ key: oss-cad-suite-${{ runner.os }}-${{ inputs.version }}
+
+ - shell: bash
+ if: steps.cache-oss-cad-suite.outputs.cache-hit != 'true'
run: |
+ VERSION=${{ inputs.version }}
ARTIFACT=oss-cad-suite-linux-x64-$(echo $VERSION | tr -d '-')
wget -q -O - https://github.com/YosysHQ/oss-cad-suite-build/releases/download/${VERSION}/${ARTIFACT}.tgz | tar -zx
- echo "$(pwd)/oss-cad-suite/bin" >> $GITHUB_PATH
+
+ # Add the CAD Suite to the PATH
+ - shell: bash
+ run: echo "$(pwd)/oss-cad-suite/bin" >> $GITHUB_PATH