From 59f62d82f28947af472fc8ed030051be40f5bfbe Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Thu, 12 Jan 2023 17:22:29 -0800 Subject: Switch from YosysHQ action to composite action (#2592) Based on https://github.com/chipsalliance/chisel3/pull/2901.--- .github/workflows/setup-oss-cad-suite/action.yml | 13 +++++++++++++ .github/workflows/test.yml | 12 ++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/setup-oss-cad-suite/action.yml (limited to '.github/workflows') 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..94062951 --- /dev/null +++ b/.github/workflows/setup-oss-cad-suite/action.yml @@ -0,0 +1,13 @@ +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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98389764..38febb1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,10 +21,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install Tabby OSS Cad Suite (from YosysHQ) - uses: YosysHQ/setup-oss-cad-suite@v1 - with: - osscadsuite-version: '2021-11-09' + - name: Install Tabby OSS Cad Suite + uses: ./.github/workflows/setup-oss-cad-suite - name: Setup Scala uses: olafurpg/setup-scala@v10 with: @@ -75,10 +73,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install Tabby OSS Cad Suite (from YosysHQ) - uses: YosysHQ/setup-oss-cad-suite@v1 - with: - osscadsuite-version: '2021-11-09' + - name: Install Tabby OSS Cad Suite + uses: ./.github/workflows/setup-oss-cad-suite - name: Setup Scala uses: olafurpg/setup-scala@v10 with: -- cgit v1.2.3