Skip to content

Commit

Permalink
Update Enterprise submodule.
Browse files Browse the repository at this point in the history
Include pkl in the dependencies.
  • Loading branch information
pixlwave committed Feb 14, 2025
1 parent e9818e7 commit 3ebf279
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Enterprise
2 changes: 1 addition & 1 deletion Tools/Sources/SetupProject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct SetupProject: ParsableCommand {
}

func brewInstall() throws {
try Zsh.run(command: "brew install xcodegen swiftgen swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery FelixHerrmann/tap/swift-package-list")
try Zsh.run(command: "brew install xcodegen swiftgen swiftformat git-lfs sourcery mint pkl kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery FelixHerrmann/tap/swift-package-list")
}

func mintPackagesInstall() throws {
Expand Down
4 changes: 2 additions & 2 deletions ci_scripts/ci_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ setup_xcode_cloud_environment () {
}

install_xcode_cloud_brew_dependencies () {
brew update && brew install xcodegen
brew update && brew install xcodegen pkl
}

setup_github_actions_environment() {
unset HOMEBREW_NO_INSTALL_FROM_API
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1

brew update && brew install xcodegen swiftlint swiftformat git-lfs a7ex/homebrew-formulae/xcresultparser
brew update && brew install xcodegen swiftlint swiftformat git-lfs pkl a7ex/homebrew-formulae/xcresultparser

bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
Expand Down
15 changes: 12 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'yaml'

enterprise = '../Enterprise/fastlane/Fastfile'
enterprise = '../Enterprise/Pipeline/Scripts/iOS/Fastfile'
if File.exist?(enterprise)
import enterprise
end
Expand Down Expand Up @@ -169,7 +169,11 @@ lane :config_nightly do |options|

target_file_path = "../project.yml"
data = YAML.load_file target_file_path
data["include"].append({ "path" => "Variants/Nightly/nightly.yml" })

# Check if the "path" already exists in the "include" array
if !data["include"].any? { |item| item["path"] == "Variants/Nightly/nightly.yml" }
data["include"].append({ "path" => "Variants/Nightly/nightly.yml" })
end

config_secrets()

Expand Down Expand Up @@ -321,7 +325,12 @@ end
lane :config_alpha do
target_file_path = "../project.yml"
data = YAML.load_file target_file_path
data["include"].append({ "path" => "Variants/Alpha/alpha.yml" })

# Check if the "path" already exists in the "include" array
if !data["include"].any? { |item| item["path"] == "Variants/Alpha/alpha.yml" }
data["include"].append({ "path" => "Variants/Alpha/alpha.yml" })
end

File.open(target_file_path, 'w') { |f| YAML.dump(data, f) }

xcodegen(spec: "project.yml")
Expand Down

0 comments on commit 3ebf279

Please sign in to comment.