| 1 | name: Build examples using YoWASP |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: '0 0 * * 0' |
| 6 | |
| 7 | jobs: |
| 8 | examples: |
| 9 | |
| 10 | runs-on: ubuntu-latest |
| 11 | |
| 12 | steps: |
| 13 | - uses: actions/checkout@v4 |
| 14 | - name: Set up Python 3.x |
| 15 | uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: '3.9' |
| 18 | - name: Display Python version |
| 19 | run: python -c "import sys; print(sys.version)" |
| 20 | - name: install packages |
| 21 | run: | |
| 22 | python --version |
| 23 | pip --version |
| 24 | pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ yowasp-yosys yowasp-nextpnr-himbaechel-gowin |
| 25 | - name: build examples |
| 26 | run: | |
| 27 | cd examples |
| 28 | YOSYS=yowasp-yosys NEXTPNR=yowasp-nextpnr-himbaechel-gowin make all |
| 29 | - name: Archive artifact |
| 30 | uses: actions/upload-artifact@v4 |
| 31 | with: |
| 32 | name: bitstreams |
| 33 | path: examples/*.fs |