From 5463dbd92a8919edd82ad117df1313bb1342140a Mon Sep 17 00:00:00 2001 From: Ji Bin Date: Tue, 16 Jan 2024 22:12:23 +0800 Subject: [PATCH] always cache for macOS build Signed-off-by: Ji Bin --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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