Skip to content

Commit 1abdb4b

Browse files
committed
fixup: submodules
1 parent 9fd79eb commit 1abdb4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python_build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- run: git clone --recurse-submodules --shallow-submodules
11+
- run: git submodule update --init --recursive --depth 1
1212
- uses: actions/setup-python@v4
1313
- name: install dev requirements
1414
run: python -m pip install "cibuildwheel"
1515
- name: build sdist
1616
run: >
17-
python -c "import collections, pathlib, subprocess, sys; collections.deque(map(lambda p: subprocess.check_call([sys.executable, '-m', 'build', p, '-o', sys.argv[2]]), pathlib.Path(sys.argv[1]).iterdir()), 0)"
18-
./projects/
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/*
1919
./dist/
2020
- name: upload sdist
2121
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)