diff --git a/build/main.yml b/build/main.yml index 37bf8c9..a1892d0 100644 --- a/build/main.yml +++ b/build/main.yml @@ -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 diff --git a/build/windows-apiscan.yml b/build/windows-apiscan.yml deleted file mode 100644 index c9d0236..0000000 --- a/build/windows-apiscan.yml +++ /dev/null @@ -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