Skip to content

Commit 20307f6

Browse files
Revert "ci: parallelize the mdbook build <language> process"
This reverts commit 9ad2542.
1 parent fce62f9 commit 20307f6

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/build.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@ set -Eeuo pipefail
1515
book_lang=${1:?"Usage: $0 <book-lang> <dest-dir>"}
1616
dest_dir=${2:?"Usage: $0 <book-lang> <dest-dir>"}
1717

18-
# ensure source dir exists
19-
mkdir -p source
20-
# clean previous build artifacts
21-
SOURCE_DIR="source/${book_lang}"
22-
rm -rf "$SOURCE_DIR"
23-
mkdir "$SOURCE_DIR"
24-
25-
# clone the current state into the source directory
26-
git clone . "$SOURCE_DIR"
27-
28-
# now work from that new directory as the base directory
29-
cd "$SOURCE_DIR"
30-
3118
if [ "$book_lang" = "en" ]; then
3219
echo "::group::Building English course"
3320
else

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ jobs:
4141
run: .github/workflows/build.sh en book
4242

4343
- name: Build all translations
44-
# note: build.sh here uses the given book path relative to source/{language}
4544
run: |
46-
parallel -i .github/workflows/build.sh {} book/{} -- ${{ env.LANGUAGES }}
47-
parallel -i mv source/{}/book/{}/html book/html/{} -- ${{ env.LANGUAGES }}
45+
for po_lang in ${{ env.LANGUAGES }}; do
46+
.github/workflows/build.sh $po_lang book/$po_lang
47+
mv book/$po_lang/html book/html/$po_lang
48+
done
49+
4850
- name: Build translation report
4951
run: i18n-report report book/html/translation-report.html po/*.po
5052

0 commit comments

Comments
 (0)