Skip to content

Commit 24d50ca

Browse files
committed
github actions: fix sdist
1 parent 15847c8 commit 24d50ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/python_build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ jobs:
1414
run: python -m pip install "cibuildwheel"
1515
- name: build sdist
1616
run: >
17-
python -c "import collections, functools, itertools, pathlib, subprocess, sys; collections.deque(map(lambda target: subprocess.check_call([sys.executable, '-m', 'build', '-o', pathlib.Path(sys.argv[2]), target]), functools.reduce(lambda acc, cur: itertools.chain.from_iterable(acc_.glob(cur) for acc_ in acc), pathlib.Path(sys.argv[1]).parts, [pathlib.Path()])), 0)"
18-
./projects/*
19-
./dist/
17+
python -c "import collections, functools, itertools, pathlib, subprocess, sys; collections.deque(map(lambda target: subprocess.check_call([sys.executable, '-m', 'build', '-o', pathlib.Path(sys.argv[2]), '-s', target]), functools.reduce(lambda acc, cur: itertools.chain.from_iterable(acc_.glob(cur) for acc_ in acc), pathlib.Path(sys.argv[1]).parts, [pathlib.Path()])), 0)"
18+
"./projects/*"
19+
"./dist/"
2020
- name: upload sdist
2121
uses: actions/upload-artifact@v4
2222
with:
2323
name: sdist
2424
path: ./dist/*
25+
if-no-files-found: error
2526

2627
bdist:
2728
name: Binary build for ${{ matrix.py-impl }} on ${{ matrix.os }}

0 commit comments

Comments
 (0)