diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 7eaf017fbc..94ef75cfec 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -9,9 +9,10 @@ jobs: build_wheels: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} + timeout-minutes: 360 strategy: matrix: - os: [ubuntu-22.04, windows-2022, macos-14, macos-15] + os: [ubuntu-22.04] steps: - uses: actions/checkout@v4 @@ -31,19 +32,10 @@ jobs: RUST_LOG=trace python -m uv pip install -e .[all] --verbose shell: bash - - name: Install dependencies (Windows) - if: runner.os == 'Windows' - env: - RUST_LOG: trace - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install -e .[all] --verbose - shell: cmd - - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 env: + CIBW_ARCHS: "x86_64" # disable repair CIBW_REPAIR_WHEEL_COMMAND: "" with: @@ -58,6 +50,7 @@ jobs: build_wheels_arm64: name: Build arm64 wheels runs-on: ubuntu-latest + timeout-minutes: 360 steps: - uses: actions/checkout@v4 with: @@ -75,7 +68,7 @@ jobs: CIBW_REPAIR_WHEEL_COMMAND: "" CIBW_ARCHS: "aarch64" CIBW_ENVIRONMENT: CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_APPLE_SILICON_PROCESSOR=arm64 -DCMAKE_CROSSCOMPILING=ON" - CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*" + CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*" with: output-dir: wheelhouse @@ -88,6 +81,7 @@ jobs: build_sdist: name: Build source distribution runs-on: ubuntu-latest + timeout-minutes: 360 steps: - uses: actions/checkout@v4 @@ -107,17 +101,6 @@ jobs: python -m uv pip install build shell: bash - - name: Install dependencies (Windows) - if: runner.os == 'Windows' - env: - RUST_LOG: trace - run: | - python -m pip install --upgrade pip - python -m pip install uv - python -m uv pip install -e .[all] --verbose - python -m uv pip install build - shell: cmd - - name: Build source distribution run: | python -m build --sdist @@ -138,8 +121,18 @@ jobs: merge-multiple: true path: dist - - uses: softprops/action-gh-release@v2 + - name: Create Release + uses: softprops/action-gh-release@v2 with: + tag_name: release-${{ github.run_number }}-${{ github.run_attempt }} + name: Release ${{ github.run_number }} + body: | + Automated release created by GitHub Actions. + Run Number: ${{ github.run_number }} + Run Attempt: ${{ github.run_attempt }} + Commit: ${{ github.sha }} files: dist/* + draft: false + prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/generate-index-from-release.yaml b/.github/workflows/generate-index-from-release.yaml index 255ee67d6f..e3b4c12499 100644 --- a/.github/workflows/generate-index-from-release.yaml +++ b/.github/workflows/generate-index-from-release.yaml @@ -44,8 +44,8 @@ jobs: ./scripts/releases-to-pep-503.sh index/whl/cu122 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu122$' ./scripts/releases-to-pep-503.sh index/whl/cu123 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu123$' ./scripts/releases-to-pep-503.sh index/whl/cu124 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu124$' - # ./scripts/releases-to-pep-503.sh index/whl/cu125 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu124$' - # ./scripts/releases-to-pep-503.sh index/whl/cu126 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu124$' + ./scripts/releases-to-pep-503.sh index/whl/cu125 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu125$' + ./scripts/releases-to-pep-503.sh index/whl/cu126 '^[v]?[0-9]+\.[0-9]+\.[0-9]+-cu126$' ./scripts/releases-to-pep-503.sh index/whl/metal '^[v]?[0-9]+\.[0-9]+\.[0-9]+-metal$' - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/scripts/releases-to-pep-503.sh b/scripts/releases-to-pep-503.sh index 71910efcbf..11dd5ff477 100755 --- a/scripts/releases-to-pep-503.sh +++ b/scripts/releases-to-pep-503.sh @@ -68,7 +68,7 @@ headers+=('--header' 'content-type: application/json') for release in $releases; do log_info "Processing release: $release" response=$(curl -s "${headers[@]}" \ - "https://api.github.com/repos/abetlen/llama-cpp-python/releases/tags/$release") + "https://api.github.com/repos/PXMYH/llama-cpp-python/releases/tags/$release") if [ -z "$response" ]; then log_error "Empty response from GitHub API for release $release"