|
74 | 74 | pool:
|
75 | 75 | vmImage: 'windows-latest'
|
76 | 76 |
|
77 |
| -- template: /build/ci/job-template.yml |
78 |
| - parameters: |
79 |
| - prepScript: echo "no prep needed" |
80 |
| - name: MacOS_x64 |
81 |
| - buildScript: dotnet build /p:SkipCuda=true /p:TargetOS=mac /p:TargetArchitecture=x64 -c |
82 |
| - testScript: dotnet test --blame /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c |
83 |
| - pool: |
84 |
| - vmImage: 'macos-latest' |
85 |
| - |
86 | 77 | - template: /build/ci/job-template.yml
|
87 | 78 | parameters:
|
88 | 79 | prepScript: echo "no prep needed"
|
@@ -183,35 +174,6 @@ jobs:
|
183 | 174 | - publish: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)
|
184 | 175 | artifact: WindowsAssets
|
185 | 176 |
|
186 |
| -# ################################################################################ |
187 |
| -- job: MacOS_x64_Native_Build_For_Packages |
188 |
| -# ################################################################################ |
189 |
| - condition: and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], '${{ parameters.SourceBranchName }}')) |
190 |
| - variables: |
191 |
| - BuildConfig: Release |
192 |
| - OfficialBuildId: $(BUILD.BUILDNUMBER) |
193 |
| - DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
194 |
| - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 |
195 |
| - DOTNET_MULTILEVEL_LOOKUP: 0 |
196 |
| - pool: |
197 |
| - vmImage: 'macos-latest' |
198 |
| - steps: |
199 |
| - - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=mac /t:Build /p:IncludeLibTorchCpuPackages=true |
200 |
| - condition: eq('${{ parameters.BuildLibTorchPackages }}', true) |
201 |
| - displayName: Download libtorch native binaries |
202 |
| - |
203 |
| - - script: dotnet build -c $(BuildConfig) src/TorchSharp/TorchSharp.csproj /p:SkipCuda=true /p:SkipTests=true |
204 |
| - displayName: Build mac-x64 |
205 |
| - |
206 |
| - - script: dotnet build -c $(BuildConfig) src/TorchVision/TorchVision.csproj /p:SkipCuda=true /p:SkipTests=true |
207 |
| - displayName: Build TorchVision |
208 |
| - |
209 |
| - - script: dotnet build -c $(BuildConfig) src/TorchAudio/TorchAudio.csproj /p:SkipCuda=true /p:SkipTests=true |
210 |
| - displayName: Build TorchAudio |
211 |
| - |
212 |
| - - publish: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig) |
213 |
| - artifact: MacAssets_x64 |
214 |
| - |
215 | 177 | # ################################################################################
|
216 | 178 | - job: MacOS_arm64_Native_Build_For_Packages
|
217 | 179 | # ################################################################################
|
@@ -297,37 +259,6 @@ jobs:
|
297 | 259 | - script: rmdir /s /q $(Pipeline.Workspace)\LinuxAssets
|
298 | 260 | displayName: Free up space (LinuxAssets in workspace)
|
299 | 261 |
|
300 |
| - # Download all bits contributing to the packages from the Mac build |
301 |
| - - download: current |
302 |
| - artifact: MacAssets_x64 |
303 |
| - |
304 |
| - - task: CopyFiles@2 |
305 |
| - displayName: Copy mac-x64 native assets (TorchSharp) to correct folder where the bits contributing to the packages are assembled |
306 |
| - inputs: |
307 |
| - sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchSharp |
308 |
| - targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchSharp |
309 |
| - |
310 |
| - - task: CopyFiles@2 |
311 |
| - displayName: Copy mac-x64 native assets (TorchAudio) to correct folder where the bits contributing to the packages are assembled |
312 |
| - inputs: |
313 |
| - sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchAudio |
314 |
| - targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchAudio |
315 |
| - |
316 |
| - - task: CopyFiles@2 |
317 |
| - displayName: Copy mac-x64 native assets (TorchVision) to correct folder where the bits contributing to the packages are assembled |
318 |
| - inputs: |
319 |
| - sourceFolder: $(Pipeline.Workspace)/MacAssets_x64/TorchVision |
320 |
| - targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)/TorchVision |
321 |
| - |
322 |
| - - task: CopyFiles@2 |
323 |
| - displayName: Copy mac-x64 native assets (libtorch-cpu) to correct folder where the bits contributing to the packages are assembled |
324 |
| - inputs: |
325 |
| - sourceFolder: $(Pipeline.Workspace)/MacAssets_x64 |
326 |
| - targetFolder: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig) |
327 |
| - |
328 |
| - - script: rmdir /s /q $(Pipeline.Workspace)\MacAssets_x64 |
329 |
| - displayName: Free up space (MacAssets_x64 in workspace) |
330 |
| - |
331 | 262 | # Download all bits contributing to the packages from the Mac build
|
332 | 263 | - download: current
|
333 | 264 | artifact: MacAssets_arm64
|
|
0 commit comments