Commit 5a47351b authored by muyangli's avatar muyangli
Browse files

chore: do not build wheels for the dev repo

parent 1334f0ea
...@@ -64,7 +64,7 @@ jobs: ...@@ -64,7 +64,7 @@ jobs:
name: Build the linux nightly wheels name: Build the linux nightly wheels
runs-on: [self-hosted, linux-build] runs-on: [self-hosted, linux-build]
needs: tag needs: tag
if: needs.tag.outputs.is_dev == 'true' if: needs.tag.outputs.is_dev == 'true' && github.repository == 'mit-han-lab/nunchaku'
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -94,7 +94,7 @@ jobs: ...@@ -94,7 +94,7 @@ jobs:
run: bash scripts/linux_cleanup.sh run: bash scripts/linux_cleanup.sh
linux-clean-up: linux-clean-up:
if: always() if: always() && github.repository == 'mit-han-lab/nunchaku'
needs: [ linux-wheels ] needs: [ linux-wheels ]
runs-on: [ self-hosted, linux-build ] runs-on: [ self-hosted, linux-build ]
...@@ -108,7 +108,7 @@ jobs: ...@@ -108,7 +108,7 @@ jobs:
name: Build the windows nightly wheels name: Build the windows nightly wheels
runs-on: [self-hosted, windows-build] runs-on: [self-hosted, windows-build]
needs: tag needs: tag
if: needs.tag.outputs.is_dev == 'true' if: needs.tag.outputs.is_dev == 'true' && github.repository == 'mit-han-lab/nunchaku'
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -136,7 +136,7 @@ jobs: ...@@ -136,7 +136,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
windows-clean-up: windows-clean-up:
if: always() if: always() && github.repository == 'mit-han-lab/nunchaku'
needs: [ windows-wheels ] needs: [ windows-wheels ]
runs-on: [ self-hosted, windows-build ] runs-on: [ self-hosted, windows-build ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment