mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-23 00:42:48 +00:00
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
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.
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Checkout Niar
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: kivikakk/niar
|
|
path: setup-niar-out/niar
|
|
|
|
- name: Install Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
cache: pip
|
|
|
|
- name: Install client repo pip dependencies
|
|
run: pip install --editable .
|
|
|
|
- name: Install pytest
|
|
run: pip install pytest
|
|
shell: bash
|
|
|
|
- name: Install niar
|
|
run: cd setup-niar-out/niar && pip install -e .
|
|
shell: bash
|
|
|
|
- name: Install amaranth-stdio
|
|
run: pip install --no-deps git+https://github.com/amaranth-lang/amaranth-stdio.git
|
|
shell: bash
|
|
|
|
- name: Install amaranth-boards
|
|
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
|
|
with:
|
|
version: ${{ inputs.install-zig }}
|
|
|
|
- name: Report Zig version
|
|
if: ${{ inputs.install-zig }}
|
|
run: zig version
|
|
shell: bash
|