File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - name : Lint
3131 run : flake8
3232
33+ sdist :
34+ runs-on : " ubuntu-latest"
35+ steps :
36+ - name : Checkout Source
37+ uses : actions/checkout@v2
38+ with :
39+ # require history to get back to last tag for version number of branches
40+ fetch-depth : 0
41+ submodules : true
42+
43+ - name : Build Sdist
44+ run : pipx run build --sdist .
45+
46+ - name : Upload Sdist
47+ uses : actions/upload-artifact@v2
48+ with :
49+ name : dist
50+ path : dist/*
51+
3352 build :
3453 strategy :
3554 fail-fast : false
5069 - os : ubuntu-latest
5170 cov_file : /output/coverage.xml
5271 results_file : /output/pytest-results.xml
53- # Build an sdist on linux so it has the right line endings
54- - os : ubuntu-latest
55- sdist : true
5672
5773 name : build/${{ matrix.os }}/${{ matrix.python }}
5874 runs-on : ${{ matrix.os }}
7490 # Pin cibuildwheel due to https://github.com/pypa/cibuildwheel/issues/962
7591 run : pip install build cibuildwheel>=2.3.1
7692
77- - name : Build Sdist
78- if : matrix.sdist
79- run : python -m build --sdist .
80-
8193 - name : Build Wheel
8294 run : cibuildwheel --output-dir dist
8395 env :
93105 CIBW_ENVIRONMENT_LINUX : SETUPTOOLS_DSO_PLAT_NAME=manylinux2014_x86_64
94106 CIBW_SKIP : " *-musllinux*" # epicscorelibs doesn't build on musllinux platforms
95107
96- - name : Upload Wheel and Sdist
108+ - name : Upload Wheel
97109 uses : actions/upload-artifact@v2
98110 with :
99111 name : dist
@@ -129,8 +141,8 @@ jobs:
129141 with :
130142 files : artifacts/**/*.xml
131143
132- sdist :
133- needs : [build ]
144+ test- sdist :
145+ needs : [sdist ]
134146 strategy :
135147 fail-fast : false
136148 matrix :
You can’t perform that action at this time.
0 commit comments