mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-22 06:52:24 +00:00
setup-action: rely on PDM, document.
This commit is contained in:
parent
404601a50a
commit
94bddbd996
19
setup-action/README.md
Normal file
19
setup-action/README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# kivikakk/niar/setup-action
|
||||
|
||||
Use after cloning your project repository. You'll need to specify Niar as a
|
||||
dependency, and any HEAD versions of Amaranth et al. needed.
|
||||
|
||||
Usage:
|
||||
|
||||
```yaml
|
||||
- uses: kivikakk/niar/setup-action@main
|
||||
with:
|
||||
install-oss-cad-suite: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
install-zig: 0.13.0
|
||||
```
|
||||
|
||||
* Installs Python and PDM.
|
||||
* Runs `pdm install`.
|
||||
* If `install-oss-cad-suite` is specified, installs OSS CAD Suite using `github-token`.
|
||||
* If `install-zig` is specified, installs given version of Zig.
|
|
@ -13,36 +13,11 @@ inputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Checkout Niar
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kivikakk/niar
|
||||
path: setup-niar-out/niar
|
||||
- name: Setup PDM
|
||||
uses: pdm-project/setup-pdm@v4
|
||||
|
||||
- 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 .
|
||||
shell: bash
|
||||
|
||||
- name: Install pytest
|
||||
run: pip install pytest pytest-xdist
|
||||
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
|
||||
- name: Install Python dependencies
|
||||
run: pdm install
|
||||
shell: bash
|
||||
|
||||
- name: Install OSS CAD Suite
|
||||
|
|
Loading…
Reference in a new issue