Skip to content

Commit e5b3b62

Browse files
Put encoding configs in R-CMD-check-occasional, enabling them for now
1 parent c2aeade commit e5b3b62

2 files changed

Lines changed: 15 additions & 49 deletions

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
on:
2+
push:
23
schedule:
34
- cron: '17 13 23 * *' # 23rd of month at 13:17 UTC
45
workflow_dispatch:
@@ -20,6 +21,8 @@ jobs:
2021
locale: ['en_US.utf8',
2122
# Multibyte characters: Mandarin
2223
'zh_CN.utf8',
24+
# Encoding: non-UTF-8 locales for French, Mandarin, and Russian
25+
'fr_CA.ISO-8859-1', 'zh_CN.GB18030', 'ru_RU.KOI8-R',
2326
# Collate order (#3502, see also #7837): Latvian, Azeri, Hungarian, Faroese, Albanian
2427
'lv_LV.utf8', 'az_AZ.utf8', 'hu_HU.utf8', 'fo_FO.utf8', 'sq_MK.utf8',
2528
# Local time formatting (for R bug #19117)
@@ -31,6 +34,12 @@ jobs:
3134
# only run non-English locale CI on Ubuntu
3235
- os: macOS-latest
3336
locale: 'zh_CN.utf8'
37+
- os: macOS-latest
38+
locale: 'fr_CA.ISO-8859-1'
39+
- os: macOS-latest
40+
locale: 'zh_CN.GB18030'
41+
- os: macOS-latest
42+
locale: 'ru_RU.KOI8-R'
3443
- os: macOS-latest
3544
locale: 'lv_LV.utf8'
3645
- os: macOS-latest
@@ -45,6 +54,12 @@ jobs:
4554
locale: 'vi_VN.utf8'
4655
- os: windows-latest
4756
locale: 'zh_CN.utf8'
57+
- os: windows-latest
58+
locale: 'fr_CA.ISO-8859-1'
59+
- os: windows-latest
60+
locale: 'zh_CN.GB18030'
61+
- os: windows-latest
62+
locale: 'ru_RU.KOI8-R'
4863
- os: windows-latest
4964
locale: 'lv_LV.utf8'
5065
- os: windows-latest

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -71,52 +71,3 @@ jobs:
7171
- uses: yihui/actions/check-r-package@HEAD
7272
with:
7373
check-args: "--no-manual --as-cran"
74-
75-
R-CMD-check-locale:
76-
runs-on: ${{ matrix.os }}
77-
78-
name: ${{ matrix.os }}, R-${{ matrix.r }}, LC_CTYPE=${{ matrix.locale }}
79-
80-
strategy:
81-
fail-fast: true
82-
matrix:
83-
os: [ubuntu-22.04]
84-
r: ['release']
85-
locale: ['fr_CA.ISO-8859-1', 'zh_CN.GB18030', 'ru_RU.KOI8-R']
86-
87-
env:
88-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
89-
90-
steps:
91-
- uses: actions/checkout@v6
92-
93-
- uses: r-lib/actions/setup-r@v2
94-
with:
95-
r-version: ${{ matrix.r }}
96-
97-
- name: Configure locale
98-
run: |
99-
echo ${{ matrix.locale }} `echo ${{ matrix.locale }} | sed 's/.*\.//'` | sudo tee -a /etc/locale.gen
100-
sudo locale-gen --keep-existing
101-
102-
- uses: yihui/actions/setup-r-dependencies@HEAD
103-
104-
- name: Override R for locale-specific check
105-
run: |
106-
sudo mkdir -p /override
107-
# poor man's luit that doesn't require a tty
108-
sudo tee /override/R <<EOF # no quotes => expand backticks, dollars
109-
#!/bin/bash
110-
set -o pipefail
111-
exec stdbuf -o L -e L `which R` "\$@" 2>&1 | while read line; do
112-
echo "\$line" | iconv -t UTF-8
113-
done
114-
EOF
115-
sudo chmod +x /override/R
116-
echo PATH=/override:$PATH >> $GITHUB_ENV
117-
118-
- uses: yihui/actions/check-r-package@HEAD
119-
with:
120-
check-args: "--no-manual"
121-
env:
122-
LC_CTYPE: ${{ matrix.locale }}

0 commit comments

Comments
 (0)