mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-22 18:22:24 +00:00
template: add workflows.
This commit is contained in:
parent
0cdcd952b6
commit
5c6700effb
25
template/.github/workflows/cxxrtl-build.yml
vendored
Normal file
25
template/.github/workflows/cxxrtl-build.yml
vendored
Normal 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
|
36
template/.github/workflows/synthesis.yml
vendored
Normal file
36
template/.github/workflows/synthesis.yml
vendored
Normal 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 }}
|
25
template/.github/workflows/unit-tests.yml
vendored
Normal file
25
template/.github/workflows/unit-tests.yml
vendored
Normal 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
|
Loading…
Reference in a new issue