Skip to content

[CI] Re-Enable localization #22701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions tools/devops/LocProject.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,46 @@
"LciFile": "",
"Parser": "",
"LssFiles": []
},
{
"SourceFile": "@WORKING_DIRECTORY@/../../src/Resources.resx",
"Languages": "",
"CopyOption": "LangIDOnName",
"OutputPath": "@WORKING_DIRECTORY@/../../src/TranslatedAssemblies",
"LclFile": "",
"LciFile": "",
"Parser": "",
"LssFiles": []
},
{
"SourceFile": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Generator/Resources.resx",
"Languages": "",
"CopyOption": "LangIDOnName",
"OutputPath": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Generator/TranslatedAssemblies",
"LclFile": "",
"LciFile": "",
"Parser": "",
"LssFiles": []
},
{
"SourceFile": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Generator/Resources.resx",
"Languages": "",
"CopyOption": "LangIDOnName",
"OutputPath": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Generator/TranslatedAssemblies",
"LclFile": "",
"LciFile": "",
"Parser": "",
"LssFiles": []
},
{
"SourceFile": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Bindings.Analyzer/Resources.resx",
"Languages": "",
"CopyOption": "LangIDOnName",
"OutputPath": "@WORKING_DIRECTORY@/../../src/rgen/Microsoft.Macios.Bindings.Analyzer/TranslatedAssemblies",
"LclFile": "",
"LciFile": "",
"Parser": "",
"LssFiles": []
}
],
"LssFiles": [],
Expand Down
53 changes: 15 additions & 38 deletions tools/devops/automation/build-cronjob.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
# YAML pipeline build definition
# https://devdiv.visualstudio.com/DevDiv/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=13947&view=Tab_Tasks
#
# YAML build pipeline based on the Jenkins multi-stage (main branch) build workflow
# https://jenkins.internalx.com/view/Xamarin.MaciOS/job/macios/job/main/
# https://jenkins.internalx.com/view/Xamarin.MaciOS/job/macios/configure
# https://devdiv.visualstudio.com/DevDiv/_build?definitionId=17751
#
parameters:

- name: runGovernanceTests
type: boolean
default: true

- name: manuallyCreateLocPR
type: boolean
default: false

variables:
- template: templates/variables/common.yml
- name: MaciosUploadPrefix
value: ''

resources:
repositories:
Expand All @@ -45,30 +35,17 @@ schedules:
always: true

stages:

- ${{ if eq(parameters.runGovernanceTests, true) }}:
- stage: governance_checks
displayName: 'Governance Checks'
jobs:
- job: governance
displayName: 'Governance Checks'
pool:
vmImage: windows-latest
steps:
- template: templates/governance-checks.yml
parameters:
isPR: false
repositoryAlias: self
commit: HEAD

- job: translations
displayName: 'Loc translations'
pool:
vmImage: windows-latest
steps:
- template: templates/loc-translations.yml
parameters:
isPR: false
repositoryAlias: self
commit: HEAD
createLocPR: ${{ or(eq(parameters.manuallyCreateLocPR, true), eq(variables['Build.Reason'], 'Schedule')) }}
- stage: localization
displayName: 'Localization'
jobs:
- job: translations
displayName: 'Loc translations'
pool:
vmImage: windows-latest
steps:
- template: templates/loc-translations.yml
parameters:
isPR: false
repositoryAlias: self
commit: HEAD
createLocPR: ${{ or(eq(parameters.manuallyCreateLocPR, true), eq(variables['Build.Reason'], 'Schedule')) }}
2 changes: 1 addition & 1 deletion tools/devops/automation/templates/loc-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ steps:
$token = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
Write-Host "##vso[task.setvariable variable=AzDO.OneLocBuildToken;issecret=true]${token}"

- task: OneLocBuild@2
- task: OneLocBuild@3
continueOnError: true
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
Expand Down