diff --git a/.github/workflows/config/designs.json b/.github/workflows/config/designs.json index 0e1ab2e..115542b 100644 --- a/.github/workflows/config/designs.json +++ b/.github/workflows/config/designs.json @@ -30,10 +30,8 @@ "target": "gf180_gf180mcu_fd_sc_mcu7t5v0" }, { - "cache": true, "design": "aes", "remote": false, - "skip": "Routing takes too long > 1.5 hours", "target": "skywater130_demo" }, { diff --git a/.github/workflows/designs.yml b/.github/workflows/designs.yml index c2119aa..662a920 100644 --- a/.github/workflows/designs.yml +++ b/.github/workflows/designs.yml @@ -1,5 +1,10 @@ on: workflow_dispatch: + inputs: + sc-ref: + required: false + type: string + description: which siliconcompiler ref to use name: 'All Designs' @@ -37,6 +42,7 @@ jobs: - uses: hynek/build-and-inspect-python-package@v2 sc_version: + if: inputs.sc-ref == '' needs: wheel name: Get SiliconCompiler version runs-on: ubuntu-latest @@ -62,14 +68,16 @@ jobs: docker_image: needs: sc_version + if: always() name: Get tools image uses: siliconcompiler/siliconcompiler/.github/workflows/docker_image.yml@main with: - sc_version: ${{ needs.sc_version.outputs.version }} + sc_version: ${{ inputs.sc-ref || needs.sc_version.outputs.version }} designs_test: needs: [wheel, docker_image, designs] runs-on: ubuntu-latest + if: always() && !failure() && !cancelled() container: image: ${{ needs.docker_image.outputs.sc_tool }} credentials: @@ -94,6 +102,19 @@ jobs: pip install --upgrade pip pip install dist/*.whl + - name: Get SC + if: inputs.sc-ref != '' + uses: actions/checkout@v4 + with: + ref: ${{ inputs.sc-ref }} + path: sc + repository: siliconcompiler/siliconcompiler + + - name: Install SC + if: inputs.sc-ref != '' + run: | + pip install ./sc + - name: Run gallery timeout-minutes: 120 run: | @@ -138,7 +159,7 @@ jobs: merge_images: name: Merge image artifacts runs-on: ubuntu-latest - if: always() + if: always() && !failure() && !cancelled() needs: designs_test steps: @@ -149,3 +170,13 @@ jobs: pattern: images-* delete-merged: true retention-days: 7 + + - name: Generate montage + uses: convictional/trigger-workflow-and-wait@v1.6.5 + with: + github_token: ${{ github.token }} + ref: ${{ github.ref }} + owner: ${{ github.repository_owner }} + repo: scgallery + workflow_file_name: montage.yml + client_payload: '{"workflow-id": "${{ github.run_id }}"}' diff --git a/.github/workflows/montage.yml b/.github/workflows/montage.yml index 54abf2f..6d2101f 100644 --- a/.github/workflows/montage.yml +++ b/.github/workflows/montage.yml @@ -76,7 +76,7 @@ jobs: token: ${{ secrets.BOT_TOKEN }} title: "Update montage" author: "SiliconCompiler Bot " - body: "Update montage to ${{ env.SC_VERSION }}" + body: "Update montage to ${{ env.SC_VERSION }} / https://github.com/siliconcompiler/scgallery/actions/runs/${{ env.WORKFLOW_ID }}" committer: "SiliconCompiler Bot " commit-message: Update montage add-paths: images/montage.jpg diff --git a/images/aes_job0_skywater130_demo.png b/images/aes_job0_skywater130_demo.png deleted file mode 100644 index 3d9878b..0000000 Binary files a/images/aes_job0_skywater130_demo.png and /dev/null differ