代码拉取完成,页面将自动刷新
同步操作将从 似水年华/dotnet-script 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
resources:
- repo: self
trigger:
tags:
include:
- refs/tags/*
branches:
include:
- "*"
variables:
- group: dotnet-script-api-keys
jobs:
- job: Job_3
displayName: Ubuntu Agent
condition: succeeded()
pool:
vmImage: 'ubuntu-18.04'
steps:
- bash: "curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 3.1.102"
displayName: "Install 3.0.100"
- bash: "curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 5.0.100"
displayName: " 5.0.100"
- bash: "curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 6.0.100"
displayName: " 6.0.100"
- bash: |
export PATH=/home/vsts/.dotnet:$PATH
curl -L https://github.com/filipw/dotnet-script/releases/download/1.2.1/dotnet-script.1.2.1.zip > dotnet-script.zip
unzip -o dotnet-script.zip -d ./
displayName: "Install dotnet-script"
- bash: |
export PATH=/home/vsts/.dotnet:$PATH
dotnet dotnet-script/dotnet-script.dll build/Build.csx
displayName: "Run build.csx"
- job: Job_1
displayName: Mac Agent
condition: succeeded()
pool:
vmImage: 'macOS-latest'
steps:
- bash: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 3.1.102
displayName: "Install 3.0.100"
- bash: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 5.0.100
displayName: "Install 5.0.100"
- bash: |
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -version 6.0.100
displayName: "Install 6.0.100"
- bash: |
curl -L https://github.com/filipw/dotnet-script/releases/download/1.2.1/dotnet-script.1.2.1.zip > dotnet-script.zip
unzip -o dotnet-script.zip -d ./
displayName: "Install dotnet-script"
- bash: "dotnet dotnet-script/dotnet-script.dll build/build.csx"
displayName: "Run build.csx"
- job: Job_2
displayName: Windows Agent
condition: succeeded()
pool:
name: Hosted Windows 2019 with VS2019
steps:
- powershell: |
iwr https://raw.githubusercontent.com/dotnet/cli/release/2.1.3xx/scripts/obtain/dotnet-install.ps1 -outfile dotnet-install.ps1
.\dotnet-install.ps1 -Version 3.1.102
displayName: "Install 3.0.100"
- powershell: |
iwr https://raw.githubusercontent.com/dotnet/cli/release/2.1.3xx/scripts/obtain/dotnet-install.ps1 -outfile dotnet-install.ps1
.\dotnet-install.ps1 -Version 5.0.100
displayName: "Install 5.0.100"
- powershell: |
iwr https://raw.githubusercontent.com/dotnet/cli/release/2.1.3xx/scripts/obtain/dotnet-install.ps1 -outfile dotnet-install.ps1
.\dotnet-install.ps1 -Version 6.0.100
displayName: "Install 6.0.100"
# NuGet Tool Installer
# Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this task to change the version of NuGet used in the NuGet tasks.
- task: NuGetToolInstaller@0
inputs:
versionSpec: "4.8.2"
#checkLatest: false # Optional
- bash: |
export PATH=/c/Users/VssAdministrator/AppData/Local/Microsoft/dotnet:$PATH
dotnet --info
displayName: "Show installed sdk"
- bash: |
export PATH=/c/Users/VssAdministrator/AppData/Local/Microsoft/dotnet:$PATH
cd build
curl -L https://github.com/filipw/dotnet-script/releases/download/1.2.1/dotnet-script.1.2.1.zip > dotnet-script.zip
unzip -o dotnet-script.zip -d ./
displayName: "Install dotnet-script"
- bash: |
export PATH=/c/Users/VssAdministrator/AppData/Local/Microsoft/dotnet:$PATH
cd build
dotnet dotnet-script/dotnet-script.dll build.csx
displayName: "Run build.csx"
env:
IS_SECURE_BUILDENVIRONMENT: $(IS_SECURE_BUILDENVIRONMENT)
GITHUB_REPO_TOKEN: $(GITHUB_REPO_TOKEN)
NUGET_APIKEY: $(NUGET_APIKEY)
CHOCOLATEY_APIKEY: $(CHOCOLATEY_APIKEY)
- task: PublishPipelineArtifact@0
displayName: "Publish Pipeline Artifact"
inputs:
targetPath: build/Artifacts
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。