2024-06-16 09:54:08 +00:00
|
|
|
name: Setup Niar
|
|
|
|
|
|
|
|
inputs:
|
2024-06-16 10:25:42 +00:00
|
|
|
install-oss-cad-suite:
|
|
|
|
description: Install OSS CAD Suite.
|
|
|
|
|
|
|
|
github-token:
|
|
|
|
description: GitHub token used by YosysHQ/setup-oss-cad-suite.
|
|
|
|
|
2024-06-16 09:54:08 +00:00
|
|
|
install-zig:
|
|
|
|
description: Install Zig with specified version.
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
2024-07-02 10:05:34 +00:00
|
|
|
- name: Setup PDM
|
|
|
|
uses: pdm-project/setup-pdm@v4
|
2024-06-16 09:54:08 +00:00
|
|
|
|
2024-07-02 10:05:34 +00:00
|
|
|
- name: Install Python dependencies
|
|
|
|
run: pdm install
|
2024-06-16 09:54:08 +00:00
|
|
|
shell: bash
|
|
|
|
|
2024-06-16 10:25:42 +00:00
|
|
|
- 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
|
|
|
|
|
2024-06-16 09:54:08 +00:00
|
|
|
- name: Install Zig
|
|
|
|
if: ${{ inputs.install-zig }}
|
|
|
|
uses: goto-bus-stop/setup-zig@v2
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.install-zig }}
|
|
|
|
|
|
|
|
- name: Report Zig version
|
|
|
|
if: ${{ inputs.install-zig }}
|
|
|
|
run: zig version
|
2024-06-27 15:43:42 +00:00
|
|
|
shell: bash
|