Skip to content

Commit

Permalink
CI: Store the CN localization file in the ~/.gmt/localization directo…
Browse files Browse the repository at this point in the history
…ry (#1103)
  • Loading branch information
seisman authored Aug 21, 2023
1 parent 1a0cf69 commit 7ecfec5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
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

0 comments on commit 7ecfec5

Please sign in to comment.