Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Store the CN localization file in the ~/.gmt/localization directory #1103

Merged
merged 3 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ jobs:
gmt text -L
cat ~/.gmt/cidfmap
cat ~/.gmt/PSL_custom_fonts.txt
cd $(gmt --show-sharedir)/localization
cp gmt_cn1.locale gmt_cn1.locale_old
iconv -f GBK -t UTF-8 gmt_cn1.locale_old > gmt_cn1.locale

- name: Build HTML
run: make build_html
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/preview-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ jobs:
gmt text -L
cat ~/.gmt/cidfmap
cat ~/.gmt/PSL_custom_fonts.txt
cd $(gmt --show-sharedir)/localization
cp gmt_cn1.locale gmt_cn1.locale_old
iconv -f GBK -t UTF-8 gmt_cn1.locale_old > gmt_cn1.locale

- name: Build HTML
run: make build_html
Expand Down
5 changes: 4 additions & 1 deletion scripts/setup-ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Download some datasets and make changes for CI.
#
#

# Create the .gmt folder
mkdir ~/.gmt
Expand Down Expand Up @@ -74,3 +74,6 @@ STHeiti-Regular--UniGB-UTF8-V 0.700 1
STKaiti-Regular--UniGB-UTF8-V 0.700 1
EOF

# Fix the gmt_cn1.locale file
mkdir -p ~/.gmt/localization
iconv -f GBK -t UTF-8 $(gmt --show-sharedir)/localization/gmt_cn1.locale > ~/.gmt/localization/gmt_cn1.locale
Loading