Build examples using YoWASP #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build examples using YoWASP | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: install packages | |
run: | | |
python --version | |
pip --version | |
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ yowasp-yosys yowasp-nextpnr-gowin | |
- name: build examples | |
run: | | |
cd examples | |
YOSYS=yowasp-yosys NEXTPNR=yowasp-nextpnr-gowin make all | |
- name: Archive artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bitstreams | |
path: examples/*.fs |