Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/_build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on: # yamllint disable-line rule:truthy
test-matrix:
type: string
required: true
release-type:
type: string
required: false
default: ''
description: 'nightly or final'

defaults:
run:
Expand All @@ -32,7 +37,8 @@ jobs:
torch-version: ${{ matrix.torch-version }}
cuda-version: ${{ matrix.cuda-version }}

- name: Set version
- name: Set version (final)
if: ${{ inputs.release-type == 'final' }}
run: |
VERSION=`sed -n "s/^__version__ = '\(.*\)'/\1/p" pyg_lib/__init__.py`
TORCH_VERSION=`echo "pt${{ matrix.torch-version }}" | sed "s/..$//" | sed "s/\.//g"`
Expand All @@ -41,6 +47,17 @@ jobs:
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" setup.py
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" pyg_lib/__init__.py

- name: Set version (nightly)
if: ${{ inputs.release-type == 'nightly' }}
run: |
VERSION=`sed -n "s/^__version__ = '\(.*\)'/\1/p" pyg_lib/__init__.py`
TORCH_VERSION=`echo "pt${{ matrix.torch-version }}" | sed "s/..$//" | sed "s/\.//g"`
CUDA_VERSION=`echo ${{ matrix.cuda-version }}`
TODAY=`date +'%Y%m%d'`
echo "New version name: $VERSION.dev$TODAY+$TORCH_VERSION$CUDA_VERSION"
sed -i "s/$VERSION/$VERSION.dev$TODAY+$TORCH_VERSION$CUDA_VERSION/" setup.py
sed -i "s/$VERSION/$VERSION.dev$TODAY+$TORCH_VERSION$CUDA_VERSION/" pyg_lib/__init__.py

- name: Build wheel
run: |
source ./.github/workflows/cuda/Windows-env.sh ${{ matrix.cuda-version }}
Expand All @@ -63,3 +80,19 @@ jobs:
run: |
pip install pytest pytest-cov
pytest --cov --cov-report=xml

- name: Upload wheel (final)
if: ${{ inputs.release-type == 'final' }}
run: |
aws s3 sync dist s3://data.pyg.org/whl/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Upload wheel (nightly)
if: ${{ inputs.release-type == 'nightly' }}
run: |
aws s3 sync dist s3://data.pyg.org/whl/nightly/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19 changes: 18 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
outputs:
matrix-linux: ${{ steps.set-matrix.outputs.matrix-linux }}
matrix-macos: ${{ steps.set-matrix.outputs.matrix-macos }}
matrix-windows: ${{ steps.set-matrix.outputs.matrix-windows }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -34,6 +35,14 @@ jobs:
echo "matrix-macos=$matrix"
echo ::endgroup::

# Set Windows matrix
echo ::group::Set Windows matrix
filename=".github/workflows/utils/full_matrix_windows.json"
matrix=$(jq -c '[.[] | { "torch-version": .["torch-version"], "python-version": .["python-version"][], "cuda-version": .["cuda-version"][] }]' $filename)
echo "matrix-windows=$matrix" >> $GITHUB_OUTPUT
echo "matrix-windows=$matrix"
echo ::endgroup::

linux:
needs: [trigger]
uses: ./.github/workflows/_build_linux.yml
Expand All @@ -54,9 +63,17 @@ jobs:
release-type: nightly
secrets: inherit

windows:
needs: [trigger]
uses: ./.github/workflows/_build_windows.yml
with:
test-matrix: ${{ needs.trigger.outputs.matrix-windows }}
release-type: nightly
secrets: inherit

index:
if: always()
needs: [linux, macos]
needs: [linux, macos, windows]
uses: ./.github/workflows/_upload_index.yml
with:
release-type: nightly
Expand Down
198 changes: 0 additions & 198 deletions .github/workflows/nightly_legacy.yml

This file was deleted.

Loading