Unverified Commit 362cff1e authored by Simon Mo's avatar Simon Mo Committed by GitHub
Browse files

[CI][Misc] Remove Github Action Release Workflow (#11274)

parent 996aa70f
...@@ -39,67 +39,68 @@ jobs: ...@@ -39,67 +39,68 @@ jobs:
const script = require('.github/workflows/scripts/create_release.js') const script = require('.github/workflows/scripts/create_release.js')
await script(github, context, core) await script(github, context, core)
wheel: # NOTE(simon): No longer build wheel using Github Actions. See buildkite's release workflow.
name: Build Wheel # wheel:
runs-on: ${{ matrix.os }} # name: Build Wheel
needs: release # runs-on: ${{ matrix.os }}
# needs: release
strategy:
fail-fast: false # strategy:
matrix: # fail-fast: false
os: ['ubuntu-20.04'] # matrix:
python-version: ['3.9', '3.10', '3.11', '3.12'] # os: ['ubuntu-20.04']
pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt. # python-version: ['3.9', '3.10', '3.11', '3.12']
cuda-version: ['11.8', '12.1'] # pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
# cuda-version: ['11.8', '12.1']
steps:
- name: Checkout # steps:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # - name: Checkout
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup ccache
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 # - name: Setup ccache
with: # uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
create-symlink: true # with:
key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }} # create-symlink: true
# key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }}
- name: Set up Linux Env
if: ${{ runner.os == 'Linux' }} # - name: Set up Linux Env
run: | # if: ${{ runner.os == 'Linux' }}
bash -x .github/workflows/scripts/env.sh # run: |
# bash -x .github/workflows/scripts/env.sh
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 # - name: Set up Python
with: # uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
python-version: ${{ matrix.python-version }} # with:
# python-version: ${{ matrix.python-version }}
- name: Install CUDA ${{ matrix.cuda-version }}
run: | # - name: Install CUDA ${{ matrix.cuda-version }}
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }} # run: |
# bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
- name: Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
run: | # - name: Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }} # run: |
# bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }}
- name: Build wheel
shell: bash # - name: Build wheel
env: # shell: bash
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size # env:
run: | # CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }} # run: |
wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename) # bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
asset_name=${wheel_name//"linux"/"manylinux1"} # wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename)
echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV" # asset_name=${wheel_name//"linux"/"manylinux1"}
echo "asset_name=${asset_name}" >> "$GITHUB_ENV" # echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV"
# echo "asset_name=${asset_name}" >> "$GITHUB_ENV"
- name: Upload Release Asset
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 # - name: Upload Release Asset
env: # uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # env:
with: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload_url: ${{ needs.release.outputs.upload_url }} # with:
asset_path: ./dist/${{ env.wheel_name }} # upload_url: ${{ needs.release.outputs.upload_url }}
asset_name: ${{ env.asset_name }} # asset_path: ./dist/${{ env.wheel_name }}
asset_content_type: application/* # asset_name: ${{ env.asset_name }}
# asset_content_type: application/*
# (Danielkinz): This last step will publish the .whl to pypi. Warning: untested # (Danielkinz): This last step will publish the .whl to pypi. Warning: untested
# - name: Publish package # - name: Publish package
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment