diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 51e96164533b..6996e2dd19db 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -145,50 +145,50 @@ jobs: artifactName: PackageAssets artifactType: container -# ########################################### -# - job: Package -# ########################################### -# dependsOn: -# - Linux -# - MacOS -# - Windows -# condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) -# pool: -# vmImage: 'vs2017-win2016' -# steps: -# # Download all agent packages from all previous phases -# - task: DownloadBuildArtifacts@0 -# displayName: Download package assets -# inputs: -# artifactName: PackageAssets -# downloadPath: $(Build.SourcesDirectory)/binaries -# - script: | -# python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets -# displayName: 'Create NuGet configuration files' -# - task: NuGetCommand@2 -# inputs: -# command: pack -# packagesToPack: '$(Build.SourcesDirectory)/.nuget/*.nuspec' -# packDestination: '$(Build.ArtifactStagingDirectory)' -# - task: PublishBuildArtifacts@1 -# inputs: -# pathtoPublish: '$(Build.ArtifactStagingDirectory)' -# artifactName: NuGet -# artifactType: container -# - task: GitHubRelease@0 -# displayName: 'Create GitHub Release' -# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) -# inputs: -# gitHubConnection: guolinke -# repositoryName: '$(Build.Repository.Name)' -# action: 'create' -# target: '$(Build.SourceVersion)' -# tagSource: 'auto' -# title: '$(Build.SourceBranchName)' -# assets: | -# $(Build.SourcesDirectory)/binaries/PackageAssets/* -# $(Build.ArtifactStagingDirectory)/*.nupkg -# assetUploadMode: 'delete' -# isDraft: true -# isPreRelease: false -# addChangeLog: false +########################################### +- job: Package +########################################### + dependsOn: + - Linux + - MacOS + - Windows + condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) + pool: + vmImage: 'vs2017-win2016' + steps: + # Download all agent packages from all previous phases + - task: DownloadBuildArtifacts@0 + displayName: Download package assets + inputs: + artifactName: PackageAssets + downloadPath: $(Build.SourcesDirectory)/binaries + - script: | + python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets + displayName: 'Create NuGet configuration files' + - task: NuGetCommand@2 + inputs: + command: pack + packagesToPack: '$(Build.SourcesDirectory)/.nuget/*.nuspec' + packDestination: '$(Build.ArtifactStagingDirectory)' + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: '$(Build.ArtifactStagingDirectory)' + artifactName: NuGet + artifactType: container + - task: GitHubRelease@0 + displayName: 'Create GitHub Release' + condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) + inputs: + gitHubConnection: guolinke + repositoryName: '$(Build.Repository.Name)' + action: 'create' + target: '$(Build.SourceVersion)' + tagSource: 'auto' + title: '$(Build.SourceBranchName)' + assets: | + $(Build.SourcesDirectory)/binaries/PackageAssets/* + $(Build.ArtifactStagingDirectory)/*.nupkg + assetUploadMode: 'delete' + isDraft: true + isPreRelease: false + addChangeLog: false diff --git a/R-package/src/install.libs.R b/R-package/src/install.libs.R index 05640442d44b..2f8f36c449b2 100644 --- a/R-package/src/install.libs.R +++ b/R-package/src/install.libs.R @@ -1,7 +1,7 @@ # User options use_precompile <- FALSE use_gpu <- FALSE -use_mingw <- TRUE +use_mingw <- FALSE if (.Machine$sizeof.pointer != 8L) { stop("LightGBM only supports 64-bit R, please check the version of R and Rtools.")