1
0
Fork 0
mirror of https://git.sr.ht/~kivikakk/niar synced 2024-12-22 11:02:24 +00:00

setup-action: rely on PDM, document.

This commit is contained in:
Asherah Connor 2024-07-02 13:05:34 +03:00
parent 404601a50a
commit 94bddbd996
2 changed files with 23 additions and 29 deletions

19
setup-action/README.md Normal file
View 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.

View file

@ -13,36 +13,11 @@ inputs:
runs: runs:
using: composite using: composite
steps: steps:
- name: Checkout Niar - name: Setup PDM
uses: actions/checkout@v4 uses: pdm-project/setup-pdm@v4
with:
repository: kivikakk/niar
path: setup-niar-out/niar
- name: Install Python 3.12 - name: Install Python dependencies
uses: actions/setup-python@v5 run: pdm install
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
shell: bash shell: bash
- name: Install OSS CAD Suite - name: Install OSS CAD Suite