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

template: add workflows.

This commit is contained in:
Asherah Connor 2024-06-16 17:23:34 +03:00
parent 0cdcd952b6
commit 5c6700effb
3 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,25 @@
name: CXXRTL build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
cxxrtl-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pip dependencies
run: pip install --editable .
- uses: kivikakk/niar/setup-action@main
- name: Elaborate, compile and run cxxrtl
run: python -m ili9341spi cxxrtl

View file

@ -0,0 +1,36 @@
name: Synthesis
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
synthesis:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- icebreaker
- ulx3s
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pip dependencies
run: pip install --editable .
- uses: kivikakk/niar/setup-action@main
with:
install-oss-cad-suite: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Elaborate and synthesise
run: python -m ili9341spi build -b ${{ matrix.board }}

View file

@ -0,0 +1,25 @@
name: Unit tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pip dependencies
run: pip install --editable .
- uses: kivikakk/niar/setup-action@main
- name: Run tests
run: pytest tests