Skip to content
Open
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
60 changes: 30 additions & 30 deletions .github/workflows/build.yml

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
python-version: [3.9.12]
pytorch-version: [1.10.0, 1.10.1, 1.11.0]
os: [ubuntu-22.04]
python-version: [3.12.0]
pytorch-version: [2.1.0, 2.1.1, 2.2.0]

steps:
- name: Checkout code
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *'))))
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *'))))
uses: actions/checkout@v1
with:
ref: master

- name: Install Python
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *'))))
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *'))))
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.12'

- name: Linux
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *')))) && (matrix.os == 'ubuntu-18.04')
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *')))) && (matrix.os == 'ubuntu-22.04')
env:
PYTHON_VERSION: ${{ matrix.python-version }}
# Deliberately only creating an sdist; see FAQ
Expand All @@ -66,34 +66,34 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2016, ubuntu-18.04]
python-version: [3.7.0, 3.8.2, 3.9.12]
pytorch-version: [1.10.0, 1.10.1, 1.11.0]
os: [windows-2022, ubuntu-22.04]
python-version: [3.12.0]
pytorch-version: [2.1.0, 2.1.1, 2.2.0]
fail-fast: false
needs: [deploy_sdist]
steps:
- name: Checkout code
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *'))))
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *'))))
uses: actions/checkout@v1
with:
ref: master

- name: Install Python
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *'))))
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *'))))
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.12'

- name: Windows
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *')))) && (matrix.os == 'windows-2016')
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *')))) && (matrix.os == 'windows-2022')
env:
PYTHON_VERSION: ${{ matrix.python-version }}
shell: cmd
# && chaining seems to be the best (only?) way to run multiple commands in a cmd shell
# It also means that if any command fails then the step as a whole should correctly
# have a nonzero (fail) return code
run: >
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars64.bat" &&
"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat" &&
SET DISTUTILS_USE_SDK=1 &&
%CONDA%/Scripts/conda create -n myenv python=%PYTHON_VERSION% -y &&
%CONDA%/Scripts/activate myenv &&
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
echo done

- name: Linux
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *')))) && (matrix.os == 'ubuntu-18.04')
if: ((github.event_name == 'pull_request' && (github.event.pull_request.merged)) || (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger deploy ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *')))) && (matrix.os == 'ubuntu-22.04')
env:
PYTHON_VERSION: ${{ matrix.python-version }}
# Deliberately only creating an sdist; see FAQ
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/log_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2016, ubuntu-18.04]
python-version: [3.7.0, 3.8.2, 3.9.12]
pytorch-version: [1.10.0, 1.10.1, 1.11.0]
os: [windows-2022, ubuntu-22.04]
python-version: [3.12.0]
pytorch-version: [2.1.0, 2.1.1, 2.2.0]
fail-fast: false
steps:
# Deliberately no 'if' statement: this will trigger on every repository_dispatch
Expand All @@ -30,9 +30,9 @@ jobs:
SIGNATORY_ACTION: ${{ github.event.action }}
SIGNATORY_EVENT_NAME_CHECK: ${{ github.event_name == 'repository_dispatch' }}
SIGNATORY_TRIGGER_CHECK: ${{ contains(github.event.action, '-trigger log_dispatch ') }}
SIGNATORY_OS_CHECK: ${{ ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) }}
SIGNATORY_PV_CHECK: ${{ ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *')) }}
SIGNATORY_IF_CHECK: ${{ (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger log_dispatch ') && ((contains(github.event.action, '-os windows-2016') && matrix.os == 'windows-2016') || (contains(github.event.action, '-os ubuntu-18.04') && matrix.os == 'ubuntu-18.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.7.0') && matrix.python-version == '3.7.0') || (contains(github.event.action, '-pv 3.8.2') && matrix.python-version == '3.8.2') || (contains(github.event.action, '-pv 3.9.12') && matrix.python-version == '3.9.12') || contains(github.event.action, '-pv *'))) }}
SIGNATORY_OS_CHECK: ${{ ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) }}
SIGNATORY_PV_CHECK: ${{ ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *')) }}
SIGNATORY_IF_CHECK: ${{ (github.event_name == 'repository_dispatch' && contains(github.event.action, '-trigger log_dispatch ') && ((contains(github.event.action, '-os windows-2022') && matrix.os == 'windows-2022') || (contains(github.event.action, '-os ubuntu-22.04') && matrix.os == 'ubuntu-22.04') || contains(github.event.action, '-os *')) && ((contains(github.event.action, '-pv 3.12.0') && matrix.python-version == '3.12.0') || contains(github.event.action, '-pv *'))) }}
# Cross-platform way of printing out all these environment variables
run: >
python -c "import os;
Expand Down
Loading