| name: CI |
| |
| on: |
| # Runs on Every Push |
| push: |
| # Runs on Pull Requests |
| pull_request: |
| workflow_dispatch: |
| |
| jobs: |
| precheck: |
| timeout-minutes: 720 |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v2 |
| |
| - name: Set up QEMU |
| uses: docker/setup-qemu-action@v1 |
| |
| - name: Set up Docker Buildx |
| uses: docker/setup-buildx-action@v1 |
| |
| - name: Install Magic |
| run: bash ${GITHUB_WORKSPACE}/.github/scripts/install_magic.sh |
| |
| - name: Build PDK |
| run: bash ${GITHUB_WORKSPACE}/.github/scripts/build_pdk.sh |
| |
| - name: Install The Precheck |
| run: git clone --depth=1 https://github.com/efabless/mpw_precheck.git ${GITHUB_WORKSPACE}/mpw_precheck |
| |
| - name: Run The Precheck |
| run: bash ${GITHUB_WORKSPACE}/.github/scripts/run_precheck.sh |
| |
| user_project_flow: |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v2 |
| |
| - name: Set up QEMU |
| uses: docker/setup-qemu-action@v1 |
| |
| - name: Set up Docker Buildx |
| uses: docker/setup-buildx-action@v1 |
| |
| - name: Export PDK ROOT |
| run: echo "PDK_ROOT=/usr/local/pdk" >> $GITHUB_ENV |
| |
| - name: Export OPENLANE ROOT |
| run: echo "OPENLANE_ROOT=/home/runner/work/caravel_user_project/openlane" >> $GITHUB_ENV |
| |
| - name: install dependencies |
| run: | |
| sudo mkdir -p ${{ env.PDK_ROOT }} |
| sudo chown -R $USER:$USER ${{ env.PDK_ROOT }} |
| make setup |
| make simenv |
| |
| - name: hardening using openlane |
| run: | |
| make user_proj_example |
| make user_project_wrapper |
| |
| - name: Run DV RTL tests |
| run: | |
| make verify-io_ports-rtl |
| make verify-la_test1-rtl |
| make verify-la_test2-rtl |
| make verify-mprj_stimulus-rtl |
| make verify-wb_port-rtl |
| |
| - name: Run DV GL tests |
| run: | |
| make verify-io_ports-gl |
| make verify-la_test1-gl |
| make verify-la_test2-gl |
| make verify-mprj_stimulus-gl |
| make verify-wb_port-gl |