mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-26 19:23:22 +02:00
Always install and run mdbook-pandoc
(#1713)
Before, we only installed and ran `mdbook-pandoc` when publishing the course — which means that a PR change could accidentally break the publish workflow. We now test that it works on every PR. From a discussion in #1704.
This commit is contained in:
parent
1b3984df20
commit
c509dbd9e4
4
.github/workflows/build.sh
vendored
4
.github/workflows/build.sh
vendored
@ -37,9 +37,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mdbook build -d "$dest_dir"
|
mdbook build -d "$dest_dir"
|
||||||
if [ -f "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" ]; then
|
mv "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" "$dest_dir/html/"
|
||||||
mv "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" "$dest_dir/html/"
|
|
||||||
fi
|
|
||||||
(cd "$dest_dir/exerciser" && zip --recurse-paths ../html/comprehensive-rust-exercises.zip comprehensive-rust-exercises/)
|
(cd "$dest_dir/exerciser" && zip --recurse-paths ../html/comprehensive-rust-exercises.zip comprehensive-rust-exercises/)
|
||||||
|
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
8
.github/workflows/install-mdbook/action.yml
vendored
8
.github/workflows/install-mdbook/action.yml
vendored
@ -15,6 +15,14 @@ runs:
|
|||||||
run: cargo install mdbook-svgbob --locked --version 0.2.1
|
run: cargo install mdbook-svgbob --locked --version 0.2.1
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install mdbook-pandoc and related dependencies
|
||||||
|
run: |
|
||||||
|
cargo install mdbook-pandoc --locked --version 0.5.0
|
||||||
|
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
|
||||||
|
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-linux-amd64.tar.gz | tar zxf -
|
||||||
|
echo "$PWD/pandoc-3.1.11/bin" >> $GITHUB_PATH
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Install mdbook-i18n-helpers
|
- name: Install mdbook-i18n-helpers
|
||||||
run: cargo install mdbook-i18n-helpers --locked --version 0.3.1
|
run: cargo install mdbook-i18n-helpers --locked --version 0.3.1
|
||||||
shell: bash
|
shell: bash
|
||||||
|
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@ -39,13 +39,6 @@ jobs:
|
|||||||
- name: Install mdbook
|
- name: Install mdbook
|
||||||
uses: ./.github/workflows/install-mdbook
|
uses: ./.github/workflows/install-mdbook
|
||||||
|
|
||||||
- name: Install mdbook-pandoc and related dependencies
|
|
||||||
run: |
|
|
||||||
cargo install mdbook-pandoc --locked --version 0.5.0
|
|
||||||
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
|
|
||||||
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-linux-amd64.tar.gz | tar zxf -
|
|
||||||
echo "$PWD/pandoc-3.1.11/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Build course in English
|
- name: Build course in English
|
||||||
run: .github/workflows/build.sh en book
|
run: .github/workflows/build.sh en book
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user