diff options
Diffstat (limited to '.github/workflows/setup-oss-cad-suite/action.yml')
| -rw-r--r-- | .github/workflows/setup-oss-cad-suite/action.yml | 24 |
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 |
