From 3e8126f5a56cd1ff9c1e76597b4e26fe714db7b0 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sun, 16 Jun 2024 13:25:42 +0300 Subject: [PATCH] setup-action: add option to install OSS CAD Suite. --- setup-action/action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/setup-action/action.yml b/setup-action/action.yml index 2228255..49bb563 100644 --- a/setup-action/action.yml +++ b/setup-action/action.yml @@ -1,6 +1,12 @@ name: Setup Niar inputs: + install-oss-cad-suite: + description: Install OSS CAD Suite. + + github-token: + description: GitHub token used by YosysHQ/setup-oss-cad-suite. + install-zig: description: Install Zig with specified version. @@ -35,6 +41,17 @@ runs: run: pip install --no-deps git+https://github.com/amaranth-lang/amaranth-boards.git shell: bash + - name: Install OSS CAD Suite + if: ${{ inputs.install-oss-cad-suite }} + uses: YosysHQ/setup-oss-cad-suite@v3 + with: + github-token: ${{ inputs.github-token }} + + - name: Report Yosys version + if: ${{ inputs.install-oss-cad-suite }} + run: yosys --version + shell: bash + - name: Install Zig if: ${{ inputs.install-zig }} uses: goto-bus-stop/setup-zig@v2