@@ -6,7 +6,7 @@ name: Create Release
6
6
on :
7
7
push :
8
8
tags :
9
- - v *
9
+ - test_ *
10
10
11
11
# Needed to create release and upload assets
12
12
permissions :
17
17
# Retrieve tag and create release
18
18
name : Create Release
19
19
runs-on : ubuntu-latest
20
+ container :
21
+ image : rocm/pytorch:rocm6.2_ubuntu20.04_py3.9_pytorch_release_2.3.0
20
22
outputs :
21
23
upload_url : ${{ steps.create_release.outputs.upload_url }}
22
24
steps :
@@ -42,26 +44,21 @@ jobs:
42
44
wheel :
43
45
name : Build Wheel
44
46
runs-on : ${{ matrix.os }}
47
+ container :
48
+ image : rocm/pytorch:rocm6.2_ubuntu20.04_py3.9_pytorch_release_2.3.0
45
49
needs : release
46
50
47
51
strategy :
48
52
fail-fast : false
49
53
matrix :
50
54
os : ['ubuntu-20.04']
51
- python-version : ['3.8', '3.9', '3.10', '3.11', '3.12']
52
- pytorch-version : ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
53
- cuda-version : ['11.8', '12.1']
55
+ python-version : ['3.9']
56
+ pytorch-version : ['2.5.0'] # Must be the most recent version that meets requirements-cuda.txt.
54
57
55
58
steps :
56
59
- name : Checkout
57
60
uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
58
61
59
- - name : Setup ccache
60
- uses : hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
61
- with :
62
- create-symlink : true
63
- key : ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }}
64
-
65
62
- name : Set up Linux Env
66
63
if : ${{ runner.os == 'Linux' }}
67
64
run : |
@@ -72,20 +69,12 @@ jobs:
72
69
with :
73
70
python-version : ${{ matrix.python-version }}
74
71
75
- - name : Install CUDA ${{ matrix.cuda-version }}
76
- run : |
77
- bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
78
-
79
- - name : Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
80
- run : |
81
- bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }}
82
-
83
72
- name : Build wheel
84
73
shell : bash
85
74
env :
86
75
CMAKE_BUILD_TYPE : Release # do not compile with debug symbol to reduce wheel size
87
76
run : |
88
- bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
77
+ bash -x .github/workflows/scripts/build.sh
89
78
wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename)
90
79
asset_name=${wheel_name//"linux"/"manylinux1"}
91
80
echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV"
0 commit comments