mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CI: force LANG/LC_ALL to UTF-8 in iOS workflows (CocoaPods needs it)
pod install fails with Encoding::CompatibilityError 'Unicode Normalization not appropriate for ASCII-8BIT' when the shell locale isn't UTF-8. CocoaPods' own warning tells you: 'CocoaPods requires your terminal to be using UTF-8 encoding'. Gitea Actions runner on macOS launches subprocesses with LANG unset, which Ruby treats as ASCII-8BIT. Setting env-level LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8 fixes it for all steps in the job.
This commit is contained in:
@@ -28,6 +28,10 @@ jobs:
|
||||
env:
|
||||
APP_IOS_TYPE: cakewallet
|
||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
# CocoaPods refuses to operate when LANG is ASCII-8BIT (default for the
|
||||
# Gitea runner shell). Force UTF-8 globally so `pod install` succeeds.
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -35,6 +35,9 @@ jobs:
|
||||
env:
|
||||
APP_IOS_TYPE: cakewallet
|
||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
# CocoaPods needs UTF-8; Gitea runner shell defaults to ASCII-8BIT.
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user