Skip to content

Commit

Permalink
Attempt build targeting platform and python version
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen committed Feb 15, 2024
1 parent 7108f93 commit 32095d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ jobs:
if ( $env:CUDA_VERSION -eq $env:PYPI_CUDA_VERSION ){
$env:PYPI_BUILD = 1
}
python setup.py sdist bdist_wheel
if (${{ runner.os }} -eq "Linux") { $platform_name = "manylinux2014_x86_64" } else {$platform_name = "win_amd64"}
python setup.py sdist bdist_wheel --plat-name $platform_name --python-version ${{ matrix.pyver }}
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
Expand Down Expand Up @@ -236,8 +237,9 @@ jobs:
echo "Using python for build:"
python --version
which python
ROCM_VERSION=${{ matrix.rocm }} python setup.py sdist bdist_wheel
if ("${{ runner.os }}" == "Linux") { platform_name="manylinux2014_x86_64" } else {platform_name="win_amd64"}
ROCM_VERSION=${{ matrix.rocm }} python setup.py sdist bdist_wheel --plat-name $platform_name --python-version ${{ matrix.python }}
- uses: actions/upload-artifact@v3
if: runner.os == 'Linux'
Expand Down

0 comments on commit 32095d4

Please sign in to comment.