1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-03 10:24:49 +08:00

Fix workflow:

1. add sudo to commmands.
2. explicitly set LC_ALl to zh_CN.UTF-8. I am not sure whether the env:
setting in a step can be passed down.
This commit is contained in:
Zhang Fuxin
2021-10-31 23:34:15 +08:00
parent 78dfa6f577
commit 9252a91c4e

View File

@@ -27,16 +27,15 @@ jobs:
run: sudo apt-get install -y fonts-noto-cjk
- name: setup locale
run: |
apt-get install -y locales
sed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
sudo apt-get install -y locales
sudo sed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen
sudo locale-gen
shell: bash
env:
LC_ALL: zh_CN.UTF-8
- uses: foxsen/actions/setup-tinytex-new@tinytex-v2
with:
cache-version: 6
- name: Render Book
run: export PATH=$PATH:$HOME/bin; make -j8
run: export PATH=$PATH:$HOME/bin; export LC_ALL=zh_CN.UTF-8; make -j8
shell: bash
- uses: actions/upload-artifact@v1
with: