Skip to content

Commit 7a580da

Browse files
Disable MacOS ARM64 builds
1 parent 299304d commit 7a580da

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ jobs:
7474
pool:
7575
vmImage: 'windows-latest'
7676

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-
8677
- template: /build/ci/job-template.yml
8778
parameters:
8879
prepScript: echo "no prep needed"
@@ -183,35 +174,6 @@ jobs:
183174
- publish: $(Build.SourcesDirectory)/bin/obj/packprep/$(BuildConfig)
184175
artifact: WindowsAssets
185176

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-
215177
# ################################################################################
216178
- job: MacOS_arm64_Native_Build_For_Packages
217179
# ################################################################################
@@ -297,37 +259,6 @@ jobs:
297259
- script: rmdir /s /q $(Pipeline.Workspace)\LinuxAssets
298260
displayName: Free up space (LinuxAssets in workspace)
299261

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-
331262
# Download all bits contributing to the packages from the Mac build
332263
- download: current
333264
artifact: MacAssets_arm64

0 commit comments

Comments
 (0)