[CI][Misc] Remove Github Action Release Workflow (#11274)
This commit is contained in:
parent
996aa70f00
commit
362cff1eb3
105
.github/workflows/publish.yml
vendored
105
.github/workflows/publish.yml
vendored
@ -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:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
matrix:
|
# matrix:
|
||||||
os: ['ubuntu-20.04']
|
# os: ['ubuntu-20.04']
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12']
|
# python-version: ['3.9', '3.10', '3.11', '3.12']
|
||||||
pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
|
# pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
|
||||||
cuda-version: ['11.8', '12.1']
|
# cuda-version: ['11.8', '12.1']
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Setup ccache
|
# - name: Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
|
# uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
|
||||||
with:
|
# with:
|
||||||
create-symlink: true
|
# create-symlink: true
|
||||||
key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }}
|
# key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }}
|
||||||
|
|
||||||
- name: Set up Linux Env
|
# - name: Set up Linux Env
|
||||||
if: ${{ runner.os == 'Linux' }}
|
# if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
# run: |
|
||||||
bash -x .github/workflows/scripts/env.sh
|
# bash -x .github/workflows/scripts/env.sh
|
||||||
|
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
# uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||||
with:
|
# with:
|
||||||
python-version: ${{ matrix.python-version }}
|
# python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install CUDA ${{ matrix.cuda-version }}
|
# - name: Install CUDA ${{ matrix.cuda-version }}
|
||||||
run: |
|
# run: |
|
||||||
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
|
# bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
|
# - name: Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
|
||||||
run: |
|
# run: |
|
||||||
bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }}
|
# bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }}
|
||||||
|
|
||||||
- name: Build wheel
|
# - name: Build wheel
|
||||||
shell: bash
|
# shell: bash
|
||||||
env:
|
# env:
|
||||||
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
|
# CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
|
||||||
run: |
|
# run: |
|
||||||
bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
|
# bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
|
||||||
wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename)
|
# wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename)
|
||||||
asset_name=${wheel_name//"linux"/"manylinux1"}
|
# asset_name=${wheel_name//"linux"/"manylinux1"}
|
||||||
echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV"
|
# echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV"
|
||||||
echo "asset_name=${asset_name}" >> "$GITHUB_ENV"
|
# echo "asset_name=${asset_name}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Upload Release Asset
|
# - name: Upload Release Asset
|
||||||
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
|
# uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
# upload_url: ${{ needs.release.outputs.upload_url }}
|
||||||
asset_path: ./dist/${{ env.wheel_name }}
|
# asset_path: ./dist/${{ env.wheel_name }}
|
||||||
asset_name: ${{ env.asset_name }}
|
# asset_name: ${{ env.asset_name }}
|
||||||
asset_content_type: application/*
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user