|
82 | 82 | condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none')) |
83 | 83 | displayName: Setup NPM Registry |
84 | 84 |
|
85 | | - - script: mkdir -p .build && node build/azure-pipelines/common/computeNodeModulesCacheKey.ts alpine $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash |
| 85 | + - script: mkdir -p .build && node build/azure-pipelines/common/computeNodeModulesCacheKey.ts alpine $VSCODE_ARCH $(node -p process.arch) alpine-3.22 > .build/packagelockhash |
86 | 86 | displayName: Prepare node_modules cache key |
87 | 87 |
|
88 | 88 | - task: Cache@2 |
@@ -118,26 +118,21 @@ jobs: |
118 | 118 | - task: NuGetAuthenticate@1 |
119 | 119 | displayName: Setup NuGet Authentication |
120 | 120 |
|
| 121 | + - template: ../common/setup-qemu.yml@self |
| 122 | + parameters: |
| 123 | + condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), eq(variables['NPM_ARCH'], 'arm64')) |
| 124 | + |
121 | 125 | - task: Docker@1 |
122 | 126 | inputs: |
123 | 127 | azureSubscriptionEndpoint: vscode |
124 | 128 | azureContainerRegistry: vscodehub.azurecr.io |
125 | 129 | command: "Run an image" |
126 | 130 | imageName: "vscode-linux-build-agent:alpine-$(VSCODE_ARCH)" |
| 131 | + arguments: --pull=always |
127 | 132 | containerCommand: uname |
128 | 133 | displayName: "Pull image" |
129 | 134 | condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true')) |
130 | 135 |
|
131 | | - - task: Docker@1 |
132 | | - inputs: |
133 | | - azureSubscriptionEndpoint: vscode |
134 | | - azureContainerRegistry: vscodehub.azurecr.io |
135 | | - command: "Run an image" |
136 | | - imageName: "multiarch/qemu-user-static@sha256:fe60359c92e86a43cc87b3d906006245f77bfc0565676b80004cc666e4feb9f0" |
137 | | - containerCommand: uname |
138 | | - displayName: "Pull qemu-user-static image" |
139 | | - condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), eq(variables['NPM_ARCH'], 'arm64')) |
140 | | - |
141 | 136 | - script: sudo apt-get update && sudo apt-get install -y libkrb5-dev |
142 | 137 | displayName: Install build dependencies |
143 | 138 | condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true')) |
|
0 commit comments