Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ jobs:
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), ne(variables['NPM_REGISTRY'], 'none'))
displayName: Setup NPM Authentication

- template: ../common/foundry-local.yml@self
parameters:
phase: prepare
onlyOnNodeModulesCacheMiss: true
- task: NuGetAuthenticate@1
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Setup NuGet Authentication

- task: Docker@1
inputs:
Expand Down Expand Up @@ -127,17 +126,14 @@ jobs:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: "$(github-token-code-oss)"
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:alpine-$(VSCODE_ARCH)
VSCODE_HOST_MOUNT: "/mnt/vss/_work/1/s"
VSCODE_NPMRC_PATH: $(NPMRC_PATH)
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- template: ../common/foundry-local.yml@self
parameters:
phase: install
onlyOnNodeModulesCacheMiss: true

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Verify native optional dependency binaries
Expand Down
11 changes: 4 additions & 7 deletions build/azure-pipelines/alpine/product-build-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ jobs:
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))
displayName: Setup NPM Authentication

- template: ../common/foundry-local.yml@self
parameters:
phase: prepare
- task: NuGetAuthenticate@1
displayName: Setup NuGet Authentication

- task: Docker@1
inputs:
Expand Down Expand Up @@ -171,16 +170,14 @@ jobs:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: "$(github-token-code-oss)"
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:alpine-$(VSCODE_ARCH)
VSCODE_HOST_MOUNT: "/mnt/vss/_work/1/s"
VSCODE_NPMRC_PATH: $(NPMRC_PATH)
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- template: ../common/foundry-local.yml@self
parameters:
phase: install

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
displayName: Verify native optional dependency binaries

Expand Down
8 changes: 0 additions & 8 deletions build/azure-pipelines/common/disableFoundryLocalInstall.ts

This file was deleted.

27 changes: 0 additions & 27 deletions build/azure-pipelines/common/foundry-local.yml

This file was deleted.

121 changes: 0 additions & 121 deletions build/azure-pipelines/common/foundryLocalInstall.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ jobs:
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Setup PyPI Authentication

- template: ../common/foundry-local.yml@self
parameters:
phase: prepare
onlyOnNodeModulesCacheMiss: true
- task: NuGetAuthenticate@1
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Setup NuGet Authentication

- script: |
set -e
Expand All @@ -99,6 +98,8 @@ jobs:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: "$(github-token-code-oss)"
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
# Avoid using dlopen to load Kerberos on macOS which can cause missing libraries
# https://github.com/mongodb-js/kerberos/commit/04044d2814ad1d01e77f1ce87f26b03d86692cf2
# flipped the default to support legacy linux distros which shouldn't happen
Expand All @@ -107,11 +108,6 @@ jobs:
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- template: ../common/foundry-local.yml@self
parameters:
phase: install
onlyOnNodeModulesCacheMiss: true

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Verify native optional dependency binaries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ steps:
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if or(eq(parameters.VSCODE_CIBUILD, true), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, true)) }}:
- script: node build/azure-pipelines/common/disableFoundryLocalInstall.ts
displayName: Disable Foundry Local Native Install

- template: ../../distro/download-distro.yml@self

- task: AzureKeyVault@2
Expand Down Expand Up @@ -84,9 +80,8 @@ steps:
displayName: Setup NPM Authentication

- ${{ if and(eq(parameters.VSCODE_CIBUILD, false), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, false)) }}:
- template: ../../common/foundry-local.yml@self
parameters:
phase: prepare
- task: NuGetAuthenticate@1
displayName: Setup NuGet Authentication

- task: PipAuthenticate@1
inputs:
Expand All @@ -112,6 +107,11 @@ steps:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: "$(github-token-code-oss)"
${{ if or(eq(parameters.VSCODE_CIBUILD, true), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, true)) }}:
FOUNDRY_LOCAL_SKIP_INSTALL: "1"
${{ else }}:
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
# Avoid using dlopen to load Kerberos on macOS which can cause missing libraries
# https://github.com/mongodb-js/kerberos/commit/04044d2814ad1d01e77f1ce87f26b03d86692cf2
# flipped the default to support legacy linux distros which shouldn't happen
Expand All @@ -120,11 +120,6 @@ steps:
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- ${{ if and(eq(parameters.VSCODE_CIBUILD, false), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, false)) }}:
- template: ../../common/foundry-local.yml@self
parameters:
phase: install

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
displayName: Verify native optional dependency binaries

Expand Down
14 changes: 5 additions & 9 deletions build/azure-pipelines/linux/product-build-linux-node-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ jobs:
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), ne(variables['NPM_REGISTRY'], 'none'))
displayName: Setup NPM Authentication

- template: ../common/foundry-local.yml@self
parameters:
phase: prepare
onlyOnNodeModulesCacheMiss: true
- task: NuGetAuthenticate@1
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Setup NuGet Authentication

- script: |
set -e
Expand Down Expand Up @@ -144,14 +143,11 @@ jobs:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ONNXRUNTIME_NODE_INSTALL: skip
GITHUB_TOKEN: "$(github-token-code-oss)"
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- template: ../common/foundry-local.yml@self
parameters:
phase: install
onlyOnNodeModulesCacheMiss: true

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Verify native optional dependency binaries
Expand Down
19 changes: 7 additions & 12 deletions build/azure-pipelines/linux/steps/product-build-linux-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ steps:
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if or(eq(parameters.VSCODE_CIBUILD, true), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, true)) }}:
- script: node build/azure-pipelines/common/disableFoundryLocalInstall.ts
displayName: Disable Foundry Local Native Install

- template: ../../distro/download-distro.yml@self

- task: AzureKeyVault@2
Expand Down Expand Up @@ -104,9 +100,8 @@ steps:
displayName: Setup NPM Authentication

- ${{ if and(eq(parameters.VSCODE_CIBUILD, false), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, false)) }}:
- template: ../../common/foundry-local.yml@self
parameters:
phase: prepare
- task: NuGetAuthenticate@1
displayName: Setup NuGet Authentication

- script: |
set -e
Expand Down Expand Up @@ -164,14 +159,14 @@ steps:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ONNXRUNTIME_NODE_INSTALL: skip
GITHUB_TOKEN: "$(github-token-code-oss)"
${{ if or(eq(parameters.VSCODE_CIBUILD, true), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, true)) }}:
FOUNDRY_LOCAL_SKIP_INSTALL: "1"
${{ else }}:
FOUNDRY_LOCAL_NUGET_MODE: dotnet
FOUNDRY_LOCAL_NUGET_FEEDS: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/nuget/v3/index.json"
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))

- ${{ if and(eq(parameters.VSCODE_CIBUILD, false), eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL, false)) }}:
- template: ../../common/foundry-local.yml@self
parameters:
phase: install

- script: node build/azure-pipelines/common/checkNativeOptionalDeps.ts
displayName: Verify native optional dependency binaries

Expand Down
Loading
Loading