Skip to content

Commit c8d1332

Browse files
authored
Merge pull request bytedance#64 from bytedance/build-ci
add build check ci
2 parents b136dfb + 875c721 commit c8d1332

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

.github/workflows/build_check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,34 @@ jobs:
2929
- name: check format
3030
run: |
3131
pre-commit run -a --show-diff-on-failure
32+
33+
build_wheel:
34+
runs-on: ubuntu-latest
35+
container: taka23/lightseq:build-linux
36+
37+
steps:
38+
- uses: actions/checkout@v1
39+
with:
40+
submodules: 'recursive'
41+
- name: env check
42+
run: |
43+
/opt/python/cp38-cp38/bin/python -V
44+
- name: build wheel
45+
run: |
46+
/opt/python/cp38-cp38/bin/python -m pip install -U build
47+
/opt/python/cp38-cp38/bin/python -m build
48+
49+
build_inference:
50+
runs-on: ubuntu-latest
51+
container: taka23/lightseq:build-linux
52+
53+
steps:
54+
- uses: actions/checkout@v1
55+
with:
56+
submodules: 'recursive'
57+
- name: env check
58+
run: |
59+
/opt/python/cp38-cp38/bin/python -V
60+
- name: build ext
61+
run: |
62+
/opt/python/cp38-cp38/bin/python setup.py build_ext

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ def build_extension(self, ext):
132132
logger.warning(e)
133133
logger.warning("The inference extension could not be compiled")
134134

135-
# Retry to install the module without C extensions :
136-
# Remove any previously defined build_ext command class.
137-
if "build_ext" in setup_kwargs["cmdclass"]:
138-
del setup_kwargs["cmdclass"]["build_ext"]
139-
140135
# If this new 'setup' call don't fail, the module
141136
# will be successfully installed, without the C extension :
142137
setup(**setup_kwargs)

0 commit comments

Comments
 (0)