Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Oct 22, 2024
1 parent b0accdc commit 7a064e9
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/build_ft_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,61 +7,61 @@ on:
branches: [ 'master', 'release/v*' ]

jobs:
bdist-wheels:
runs-on: ${{ matrix.info.machine }}
strategy:
fail-fast: false
matrix:
info:
- { machine: 'ubuntu-20.04', python: '3.13t', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'macos-13', python: '3.13t', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-latest', python: '3.13t', arch: 'arm64', cmd: '.github/env/macOS/bdist-wheel.sh' }

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v3
- run: |
uv python install 3.13t
uv venv --python 3.13t
source .venv/bin/activate
uv pip install pip
echo $JAVA_HOME
echo PATH=$PATH >> $GITHUB_ENV
- run: ${{ matrix.info.cmd }}

- uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }}
path: dist/*.whl
retention-days: 1

bdist-wheels-windows:
runs-on: ${{ matrix.info.machine }}
strategy:
fail-fast: false
matrix:
info:
- { machine: 'windows-2022', python: '3.13t', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v3
- run: |
uv python install 3.13t
uv venv --python 3.13t
.venv\Scripts\Activate.ps1
uv pip install pip
echo PATH=%PATH% >> $GITHUB_ENV
${{ matrix.info.cmd }}
- uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }}
path: dist/*.whl
retention-days: 1
# bdist-wheels:
# runs-on: ${{ matrix.info.machine }}
# strategy:
# fail-fast: false
# matrix:
# info:
# - { machine: 'ubuntu-20.04', python: '3.13t', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
# - { machine: 'macos-13', python: '3.13t', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
# - { machine: 'macos-latest', python: '3.13t', arch: 'arm64', cmd: '.github/env/macOS/bdist-wheel.sh' }
#
# steps:
# - uses: actions/checkout@v4
#
# - uses: astral-sh/setup-uv@v3
# - run: |
# uv python install 3.13t
# uv venv --python 3.13t
# source .venv/bin/activate
# uv pip install pip
# echo $JAVA_HOME
# echo PATH=$PATH >> $GITHUB_ENV
#
# - run: ${{ matrix.info.cmd }}
#
# - uses: actions/upload-artifact@v4
# with:
# name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }}
# path: dist/*.whl
# retention-days: 1
#
# bdist-wheels-windows:
# runs-on: ${{ matrix.info.machine }}
# strategy:
# fail-fast: false
# matrix:
# info:
# - { machine: 'windows-2022', python: '3.13t', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
#
# steps:
# - uses: actions/checkout@v4
#
# - uses: astral-sh/setup-uv@v3
# - run: |
# uv python install 3.13t
# uv venv --python 3.13t
# .venv\Scripts\Activate.ps1
# uv pip install pip
# echo PATH=%PATH% >> $GITHUB_ENV
# ${{ matrix.info.cmd }}
#
# - uses: actions/upload-artifact@v4
# with:
# name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }}
# path: dist/*.whl
# retention-days: 1

bdist-wheels-linux-aarch64:
runs-on: ${{ matrix.info.machine }}
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
CIBW_FREE_THREADED_SUPPORT: true
CIBW_ARCHS_LINUX: "aarch64"
CIBW_BUILD: "cp313t-*"
CIBW_BEFORE_BUILD: yum install -y temurin-8-jdk maven
CIBW_BEFORE_BUILD: yum install -y temurin-8-jdk

CIBW_ENVIRONMENT: JAVA_HOME=/usr/lib/jvm/temurin-8-jdk-aarch64
with:
Expand Down

0 comments on commit 7a064e9

Please sign in to comment.