From fb6ff513f42187c600c57fcaed162110404e8cf6 Mon Sep 17 00:00:00 2001 From: mergify[bot] Date: Tue, 20 Dec 2022 00:20:33 +0000 Subject: Switch from YosysHQ action to reusable workflow (backport #2901) (#2902) * Switch from YosysHQ action to composite action (#2901) The YosysHQ Github Action for setting up the OSS CAD Suite is very flaky in CI so instead we can just wget and untar the suite ourselves. It also seems prudent to try out composite actions to avoid duplication of installation steps. (cherry picked from commit 75aeaed9efaf1ca35573775cd21ea3b5e89e9442) # Conflicts: # .github/workflows/test.yml * Resolve backport conflicts Co-authored-by: Jack Koenig --- .github/workflows/setup-oss-cad-suite/action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/setup-oss-cad-suite/action.yml (limited to '.github/workflows/setup-oss-cad-suite') diff --git a/.github/workflows/setup-oss-cad-suite/action.yml b/.github/workflows/setup-oss-cad-suite/action.yml new file mode 100644 index 00000000..9383d56b --- /dev/null +++ b/.github/workflows/setup-oss-cad-suite/action.yml @@ -0,0 +1,14 @@ +name: Setup OSS CAD Suite + +runs: + using: composite + steps: + - name: Install Tabby OSS Cad Suite + shell: bash + env: + VERSION: 2021-11-09 + run: | + 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 + -- cgit v1.2.3 From b913a75beb10adf4421d22ae386cbb29d144b774 Mon Sep 17 00:00:00 2001 From: mergify[bot] Date: Tue, 20 Dec 2022 15:53:29 +0000 Subject: 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 --- .github/workflows/setup-oss-cad-suite/action.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to '.github/workflows/setup-oss-cad-suite') 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 -- cgit v1.2.3