diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e07b697..2486911 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: CCACHE_COMPRESS: 1 CCACHE_COMPRESSLEVEL: 5 CCACHE_MAXSIZE: 2G - timeout-minutes: 900 + timeout-minutes: 360 steps: - name: Checkout uses: actions/checkout@v3 @@ -113,8 +113,9 @@ jobs: - name: Build Wheel run: | python3 -m pip install --user build wheel 'setuptools>64.0' - python3 -m build -w -n + timeout 10800 python3 -m build -w -n || echo '::warning build may failed, please rerun action if timeout' - uses: actions/upload-artifact@v3 + if: hashFiles('dist/*.whl') with: name: wheel_macos path: dist/*.whl