Skip to content

Commit 578bd11

Browse files
authored
[Misc] Update building wheels setting (#486)
1 parent a5eaf16 commit 578bd11

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

.github/workflows/test-install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-20.04, windows-latest, macos-latest]
14+
os: [ubuntu-20.04, windows-latest, macos-12]
1515
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Test install dgl
4343
run: |
44-
python -m pip install dgl -f https://data.dgl.ai/wheels/repo.html
44+
python -m pip install 'dgl<2.0.0' -f https://data.dgl.ai/wheels/repo.html
4545
python -c "import dgl; print('dgl --', dgl.__version__)"
4646
4747
- name: Test running on Linux

.github/workflows/wheels.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,27 @@ jobs:
8383
manylinux_image: manylinux2014
8484

8585
# MacOS x86_64
86-
- os: macos-latest
86+
- os: macos-12
8787
bitness: 64
8888
python: 36
8989
platform_id: macosx_x86_64
90-
- os: macos-latest
90+
- os: macos-12
9191
bitness: 64
9292
python: 37
9393
platform_id: macosx_x86_64
94-
- os: macos-latest
94+
- os: macos-12
9595
bitness: 64
9696
python: 38
9797
platform_id: macosx_x86_64
98-
- os: macos-latest
98+
- os: macos-12
9999
bitness: 64
100100
python: 39
101101
platform_id: macosx_x86_64
102-
- os: macos-latest
102+
- os: macos-12
103103
bitness: 64
104104
python: 310
105105
platform_id: macosx_x86_64
106-
- os: macos-latest
106+
- os: macos-12
107107
bitness: 64
108108
python: 311
109109
platform_id: macosx_x86_64
@@ -121,7 +121,7 @@ jobs:
121121
- name: Install dependencies
122122
run: |
123123
python -m pip install --upgrade pip
124-
python -m pip install cibuildwheel
124+
python -m pip install cibuildwheel==2.16.2
125125
126126
- name: Build wheels
127127
env:
@@ -134,9 +134,21 @@ jobs:
134134
- name: Store artifacts
135135
uses: actions/upload-artifact@v4
136136
with:
137-
name: wheels
137+
name: wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}
138138
path: wheelhouse/*.whl
139139

140+
merge_wheels:
141+
needs: build_wheels
142+
runs-on: ubuntu-latest
143+
steps:
144+
- name: Merge All Wheels
145+
uses: actions/download-artifact@v4
146+
with:
147+
path: wheels
148+
pattern: wheels-cp*
149+
merge-multiple: true
150+
- run: ls -R wheels
151+
140152
# Build the source distribution under Linux
141153
build_sdist:
142154
name: Source distribution
@@ -161,8 +173,9 @@ jobs:
161173
twine check dist/*.tar.gz
162174
163175
- name: Store artifacts
164-
uses: actions/upload-artifact@v3
176+
uses: actions/upload-artifact@v4
165177
with:
178+
name: source
166179
path: dist/*.tar.gz
167180

168181
upload_pypi:

0 commit comments

Comments
 (0)