Skip to content

Commit

Permalink
switch to use packaged sc instead of cloning in run
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Sep 20, 2024
1 parent 4ffe1f0 commit b5cc514
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/run-designs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,26 @@ jobs:
with:
upload-name-suffix: '-lambdapdk'

package_siliconcompiler:
if: inputs.sc-ref != ''
name: Package siliconcompiler
runs-on: ubuntu-latest

outputs:
name: ${{ steps.wheel.outputs.artifact-name }}

steps:
- name: Get siliconcompiler
uses: actions/checkout@v4
with:
ref: ${{ inputs.sc-ref }}
repository: siliconcompiler/siliconcompiler

- uses: hynek/[email protected]
id: wheel
with:
upload-name-suffix: '-siliconcompiler'

sc_version:
if: inputs.sc-ref == ''
needs: wheel
Expand Down Expand Up @@ -154,7 +174,7 @@ jobs:
sc_version: ${{ inputs.sc-ref || needs.sc_version.outputs.version }}

designs_test:
needs: [wheel, docker_image, designs, package_lambdapdk]
needs: [wheel, docker_image, designs, package_lambdapdk, package_siliconcompiler]
if: always() && !cancelled()
runs-on: ubuntu-latest
container:
Expand All @@ -176,18 +196,16 @@ jobs:
- name: Install gallery
run: pip3 install dist-gallery/*.whl

- name: Get SC
- name: Get siliconcompiler
if: inputs.sc-ref != ''
uses: actions/checkout@v4
uses: actions/download-artifact@v4.1.8
with:
ref: ${{ inputs.sc-ref }}
path: sc
repository: siliconcompiler/siliconcompiler
name: ${{ needs.package_siliconcompiler.outputs.name }}
path: dist-sc

- name: Install SC
- name: Install siliconcompiler
if: inputs.sc-ref != ''
run: |
pip install ./sc
run: pip3 install dist-sc/*.whl

- name: Get lambdapdk
if: inputs.lambdapdk-ref != ''
Expand Down

0 comments on commit b5cc514

Please sign in to comment.