This commit is contained in:
Raymond Zhao 2024-11-07 14:04:17 -08:00 коммит произвёл GitHub
Родитель 2ed43d8cfa
Коммит 05625d7712
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 0 добавлений и 91 удалений

Просмотреть файл

@ -91,13 +91,6 @@ extends:
- template: build/windows.yml@self
parameters:
target: x86_64-pc-windows-msvc
# - job: win_64_apiscan
# pool:
# name: 1es-oss-windows-2022-x64
# steps:
# - template: build/windows-apiscan.yml@self
# parameters:
# target: x86_64-pc-windows-msvc
- job: win_32
pool:
name: 1es-oss-windows-2022-x64

Просмотреть файл

@ -1,84 +0,0 @@
# Based on https://github.com/BurntSushi/ripgrep/blob/master/appveyor.yml
parameters:
target: ''
rust_version: 'nightly'
steps:
- powershell: |
gci env:*
$REPO=node -p "require('./config.json').ripgrepRepo"
$TREEISH=node -p "require('./config.json').ripgrepTag"
git clone https://github.com/${REPO}.git
cd ripgrep
git checkout $TREEISH
displayName: Clone ripgrep
- powershell: |
echo $env:reason
echo $BUILD_SOURCEVERSION
Invoke-WebRequest https://win.rustup.rs -UseBasicParsing -OutFile rustup-init.exe
.\rustup-init.exe -y
$env:PATH+=";C:\Users\appveyor\.cargo\bin"
rustup default $env:RUST_VERSION
rustc -V
cargo -V
rustup target add $env:TARGET
env:
RUST_VERSION: ${{ parameters.rust_version }}
TARGET: ${{ parameters.target }}
reason: variables['Build.Reason']
displayName: Install Rust
- powershell: |
$env:RUSTFLAGS='-C target-feature=+crt-static -Zprofile'
$env:CARGO_INCREMENTAL='0'
cargo build --target $env:TARGET --features pcre2
pushd ..
$this_tag=git tag -l --contains HEAD
popd
$name="ripgrep-${this_tag}-${env:TARGET}.zip"
dir
dir .\target
dir .\target\${env:TARGET}
dir .\target\${env:TARGET}\debug\rg.exe
mkdir $(Agent.TempDirectory)\apiscan
cp .\target\${env:TARGET}\debug\rg.exe $(Agent.TempDirectory)\apiscan
cp .\target\${env:TARGET}\debug\rg.pdb $(Agent.TempDirectory)\apiscan
displayName: Build
workingDirectory: ripgrep
env:
TARGET: ${{ parameters.target }}
- task: APIScan@2
inputs:
softwareFolder: '$(Agent.TempDirectory)/apiscan'
softwareName: 'vscode-ripgrep-prebuilt'
softwareVersionNum: '1.15'
isLargeApp: false
toolVersion: 'Latest'
displayName: Run APIScan
condition: succeeded()
env:
AzureServicesAuthConnectionString: $(apiscan-connectionstring)
- task: PublishSecurityAnalysisLogs@3
displayName: Publish security logs
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: true
ToolLogsNotFoundAction: 'Standard'
# TSA Upload
- task: securedevelopmentteam.vss-secure-development-tools.build-task-uploadtotsa.TSAUpload@2
displayName: 🔒 TSA Upload
continueOnError: true
inputs:
GdnPublishTsaConfigFile: $(Build.SourcesDirectory)/.config/tsaoptions.json
GdnPublishTsaOnboard: True