github.com/microsoft/moc@v0.17.1/.pipelines/build.yaml (about)

     1  jobs:
     2  - job: Build
     3  
     4    pool:
     5      vmImage: 'ubuntu-latest'
     6  
     7    variables:
     8    - group: moc-build
     9    - name: GO111MODULE
    10      value: 'on'
    11    - name: GDN_VERSION
    12      value: '0.110.0-linux'
    13    - name: GDNP_VERSION
    14      value: '1.61.0-linux'
    15    - name: LGTM.UploadSnapshot
    16      value: true
    17  
    18    steps:
    19    - task: GoTool@0
    20      inputs:
    21        version: '1.19'
    22    - task: InstallSSHKey@0
    23      inputs:
    24        knownHostsEntry: '$(KNOWN_HOST)' 
    25        sshPublicKey: '$(SSH_PUBLIC_KEY)'
    26        sshKeySecureFile: 'azure-pipelines-ssh-key-new'
    27    - script: |
    28        git config --global url.ssh://git@github.com/.insteadOf https://github.com/
    29        git config --global url."msazure@vs-ssh.visualstudio.com:v3".insteadOf https://msazure.visualstudio.com
    30      displayName: 'Set up the Go workspace'
    31  
    32    - script: |
    33        make pipeline
    34      displayName: 'Generate Protobuf'
    35  
    36    - script: |
    37        mkdir manifest
    38        make all
    39      workingDirectory: '$(System.DefaultWorkingDirectory)'
    40      displayName: 'Build'
    41  
    42    - script: |
    43        make unittest
    44      displayName: 'Unit Tests'
    45  
    46    - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
    47      displayName: 'SBOM Generation'
    48      inputs:
    49        BuildDropPath: $(System.DefaultWorkingDirectory)/manifest
    50  
    51    - publish: $(System.DefaultWorkingDirectory)/manifest
    52      artifact: manifest