Ai
1 Star 0 Fork 1

公众号@程序员编程日记/dotnet-script

forked from 似水年华/dotnet-script 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 4.23 KB
一键复制 编辑 原始数据 按行查看 历史
Bernhard Richter 提交于 2022-02-04 05:58 +08:00 . use macOS-latest
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/conanOpenSource_admin/dotnet-script.git
git@gitee.com:conanOpenSource_admin/dotnet-script.git
conanOpenSource_admin
dotnet-script
dotnet-script
master

搜索帮助