Skip to content

Commit fa9629d

Browse files
authored
[Localization] Add OneLocBuild job (#7184)
A new job has been added to run the `OneLocBuild@2` task on every commit to main. This task produces files needed by the localization team. For more details on this process, see the [OneLocBuild documentation][0]. Onboarding for this repo is still pending, and a workflow for automatic "handback" of localized files will need to be established in a future PR once onboarding is complete. [0]: https://aka.ms/OneLocBuild
1 parent ace5f71 commit fa9629d

File tree

2 files changed

+61
-4
lines changed

2 files changed

+61
-4
lines changed

Localize/LocProject.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"Projects": [
3+
{
4+
"LanguageSet": "VS_Main_Languages",
5+
"LocItems": [
6+
{
7+
"CopyOption": "LangIDOnName",
8+
"SourceFile": ".\\src\\Microsoft.Android.Sdk.ILLink\\Properties\\Resources.resx",
9+
"OutputPath": ".\\src\\Microsoft.Android.Sdk.ILLink\\Properties\\"
10+
},
11+
{
12+
"CopyOption": "LangIDOnName",
13+
"SourceFile": ".\\src\\Xamarin.Android.Build.Tasks\\Properties\\Resources.resx",
14+
"OutputPath": ".\\src\\Xamarin.Android.Build.Tasks\\Properties\\"
15+
},
16+
]
17+
}
18+
]
19+
}

build-tools/automation/azure-pipelines.yaml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,13 +1825,13 @@ stages:
18251825
packageFilter: '*.nupkg;*.msi;*.pkg;*.vsix'
18261826
GitHub.Token: $(GitHub.Token)
18271827

1828-
- stage: code_analysis
1828+
- stage: tenets
18291829
dependsOn: []
1830-
displayName: Code Analysis
1830+
displayName: Tenets
18311831
jobs:
1832-
# Check - "Xamarin.Android (Code Analysis Security and Compliance)"
1832+
# Check - "Xamarin.Android (Tenets Code Analysis)"
18331833
- job: run_static_analysis
1834-
displayName: Security and Compliance
1834+
displayName: Code Analysis
18351835
pool:
18361836
vmImage: $(HostedWinImage)
18371837
timeoutInMinutes: 60
@@ -1876,3 +1876,41 @@ stages:
18761876
CredScan: true
18771877
PoliCheck: true
18781878
condition: succeededOrFailed()
1879+
1880+
# Check - "Xamarin.Android (Tenets OneLocBuild)"
1881+
- job: OneLocBuild
1882+
displayName: OneLocBuild
1883+
condition: eq(variables['MicroBuildSignType'], 'Real')
1884+
pool: VSEngSS-MicroBuild2022-1ES
1885+
timeoutInMinutes: 30
1886+
variables:
1887+
- group: Xamarin-Secrets
1888+
workspace:
1889+
clean: all
1890+
steps:
1891+
- checkout: self
1892+
clean: true
1893+
1894+
- task: OneLocBuild@2
1895+
displayName: OneLocBuild
1896+
env:
1897+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
1898+
inputs:
1899+
locProj: Localize/LocProject.json
1900+
outDir: $(Build.StagingDirectory)
1901+
packageSourceAuth: patAuth
1902+
patVariable: $(OneLocBuild--PAT)
1903+
isCreatePrSelected: true
1904+
repoType: gitHub
1905+
gitHubPatVariable: $(github--pat--vs-mobiletools-engineering-service2)
1906+
prSourceBranchPrefix: locpr
1907+
isShouldReusePrSelected: true
1908+
isAutoCompletePrSelected: false
1909+
isUseLfLineEndingsSelected: true
1910+
1911+
- task: PublishBuildArtifacts@1
1912+
displayName: Publish Localization Files
1913+
inputs:
1914+
PathtoPublish: $(Build.StagingDirectory)/loc
1915+
ArtifactName: Loc
1916+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)