mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Translation workflow fix (#2271)
* Setup the translations workflow through ci_scripts
This commit is contained in:
@@ -14,8 +14,9 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Project
|
- name: Setup environment
|
||||||
run: swift run tools setup-project --ci
|
run:
|
||||||
|
source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
|
||||||
|
|
||||||
- name: Download All Translations
|
- name: Download All Translations
|
||||||
run: swift run tools download-strings --all-languages
|
run: swift run tools download-strings --all-languages
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ import Foundation
|
|||||||
struct SetupProject: ParsableCommand {
|
struct SetupProject: ParsableCommand {
|
||||||
static var configuration = CommandConfiguration(abstract: "A tool to setup the required components to efficiently run and contribute to Element X iOS")
|
static var configuration = CommandConfiguration(abstract: "A tool to setup the required components to efficiently run and contribute to Element X iOS")
|
||||||
|
|
||||||
@Flag(help: "Use this only on ci to avoid installing failing packages")
|
|
||||||
var ci = false
|
|
||||||
|
|
||||||
func run() throws {
|
func run() throws {
|
||||||
try setupGitHooks()
|
try setupGitHooks()
|
||||||
try brewBundleInstall()
|
try brewBundleInstall()
|
||||||
@@ -19,10 +16,7 @@ struct SetupProject: ParsableCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func brewBundleInstall() throws {
|
func brewBundleInstall() throws {
|
||||||
try Utilities.zsh("brew install --verbose xcodegen swiftgen swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery")
|
try Utilities.zsh("brew install xcodegen swiftgen swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery")
|
||||||
if !ci {
|
|
||||||
try Utilities.zsh("brew install swiftlint")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func mintPackagesInstall() throws {
|
func mintPackagesInstall() throws {
|
||||||
|
|||||||
@@ -48,3 +48,12 @@ setup_github_actions_environment() {
|
|||||||
bundle config path vendor/bundle
|
bundle config path vendor/bundle
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install --jobs 4 --retry 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup_github_actions_translations_environment() {
|
||||||
|
unset HOMEBREW_NO_INSTALL_FROM_API
|
||||||
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
||||||
|
|
||||||
|
brew update && brew install swiftgen mint localazy/tools/localazy
|
||||||
|
|
||||||
|
mint install Asana/locheck
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user