Skip to content

Commit

Permalink
Merge pull request #48 from siliconcompiler/designs-call
Browse files Browse the repository at this point in the history
allow designs workflow to specify SC version
  • Loading branch information
gadfort committed May 14, 2024
2 parents 3ed53ff + 42173cf commit a58c61a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/config/designs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down
35 changes: 33 additions & 2 deletions .github/workflows/designs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
on:
workflow_dispatch:
inputs:
sc-ref:
required: false
type: string
description: which siliconcompiler ref to use

name: 'All Designs'

Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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: |
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}"}'
2 changes: 1 addition & 1 deletion .github/workflows/montage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
token: ${{ secrets.BOT_TOKEN }}
title: "Update montage"
author: "SiliconCompiler Bot <bot@siliconcompiler.com>"
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 <bot@siliconcompiler.com>"
commit-message: Update montage
add-paths: images/montage.jpg
Expand Down
Binary file removed images/aes_job0_skywater130_demo.png
Binary file not shown.

0 comments on commit a58c61a

Please sign in to comment.