monitor-apio-latest #1066
This file contains hidden or 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
| # A periodic workflow to test that the latest dev version is functional. | |
| # It's not a through test by any means, more like a sanity test. | |
| name: monitor-apio-latest | |
| on: | |
| # Run on commit. | |
| push: | |
| # Run every 6 hours | |
| schedule: | |
| - cron: '0 */6 * * *' | |
| # Allow manual launch | |
| workflow_dispatch: | |
| jobs: | |
| monitor: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| strategy: | |
| matrix: | |
| # 'macos-latest' -> darwin apple silicon | |
| # 'macos-15-intel' -> darwin intel x86 | |
| os: [ubuntu-22.04, macos-latest, macos-15-intel, windows-latest] | |
| python-version: ['3.14'] | |
| steps: | |
| - name: Show architecture | |
| run: uname -a | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{matrix.python-version}} | |
| - name: Show python version | |
| run: | | |
| python --version | |
| - name: Install apio dev latest | |
| run: | | |
| # If this runs on a dev fork of FPGAwars/apio, it tests | |
| # itself and not the main FPGAwars/apio. | |
| pip install --force-reinstall -U git+https://github.com/${{github.repository}}.git@main#egg=apio | |
| - name: Load apio packages (slow) | |
| run: | | |
| apio packages install -v | |
| - name: Show apio info | |
| run: | | |
| apio info system | |
| - name: Test ICE40 project | |
| run: | | |
| # Show commands | |
| set -x | |
| # Create a project | |
| mkdir ice40_project | |
| cd ice40_project | |
| apio examples fetch alhambra-ii/bcd-counter | |
| find . | |
| # Run a few command | |
| apio lint | |
| apio build | |
| apio test | |
| apio sim --no-gtkwave | |
| apio graph -n | |
| apio format | |
| apio devices usb | |
| apio devices serial | |
| find . | |
| # Check that a few files exists (fails if not) | |
| cd _build/default | |
| ls -al hardware.bin | |
| ls -al hardware.pnr | |
| ls -al graph.svg | |
| ls -al util/ticker_tb.vcd | |
| - name: Test ECP5 project | |
| run: | | |
| # Show commands | |
| set -x | |
| # Create a project | |
| mkdir ecp_project | |
| cd ecp_project | |
| apio examples fetch colorlight-5a-75b-v8/ledon | |
| find . | |
| # Run a few command | |
| apio lint | |
| apio build | |
| apio test | |
| apio sim --no-gtkwave | |
| apio graph -n | |
| apio format | |
| apio devices usb | |
| apio devices serial | |
| find . | |
| # Check that a few files exists (fails if not) | |
| cd _build/default | |
| ls -al hardware.bit | |
| ls -al hardware.pnr | |
| ls -al graph.svg | |
| ls -al ledon_tb.vcd | |
| - name: Test GOWIN project | |
| run: | | |
| # Show commands | |
| set -x | |
| # Create a project | |
| mkdir gowin_project | |
| cd gowin_project | |
| apio examples fetch sipeed-tang-nano-9k/blinky | |
| find . | |
| # Run a few command | |
| apio lint | |
| apio build | |
| apio test | |
| apio sim --no-gtkwave | |
| apio graph -n | |
| apio format | |
| apio devices usb | |
| apio devices serial | |
| find . | |
| # Check that a few files exists (fails if not) | |
| cd _build/default | |
| ls -al hardware.fs | |
| ls -al hardware.pnr | |
| ls -al graph.svg | |
| ls -al blinky_tb.vcd | |