Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2076f8

Browse files
authored
Sync with microsoft (#14)
1 parent 70631d0 commit a2076f8

File tree

9 files changed

+3521
-902
lines changed

9 files changed

+3521
-902
lines changed

.github/workflows/build.yml

+18-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,17 @@ jobs:
2929
# written, but it should be updated when VS Code updates its Node version.
3030
# Node needs to be installed before OS-specific setup so that we can run
3131
# the hash verification script.
32-
- name: Use Node 16.x
32+
- name: Use Node 18.x
3333
uses: actions/setup-node@v2
3434
with:
35-
node-version: 16.x
35+
node-version: 18.x
36+
37+
# On new macos-latest machines, Python 3.9+ is used, and it's causing issues with binding.gyp
38+
- name: Use Python 3.8
39+
if: ${{ matrix.os == 'macos-latest' }}
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: 3.8
3643

3744
# On new macos-latest machines, Python 3.9+ is used, and it's causing issues with binding.gyp
3845
- name: Use Python 3.8
@@ -79,7 +86,15 @@ jobs:
7986
- name: Check for linting errors
8087
run: gulp tslint
8188
- name: Build and pack extension
82-
run: node build/package.js
89+
if: ${{ matrix.os != 'windows-latest' }}
90+
run: |
91+
export NODE_OPTIONS="--openssl-legacy-provider --no-experimental-fetch"
92+
node build/package.js
93+
- name: Build and pack extension
94+
if: ${{ matrix.os == 'windows-latest' }}
95+
run: |
96+
$env:NODE_OPTIONS="--openssl-legacy-provider --no-experimental-fetch"
97+
node build/package.js
8398
- name: Publish extension VSIX as artifact
8499
uses: actions/upload-artifact@v2
85100
with:

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Visual Studio Code extension for Arduino
1+
# Visual Studio Code extension for Arduino (deprecated)
2+
3+
> ⚠️ **Warning** ⚠️
4+
>
5+
> # This extension is deprecated and no longer maintained. We recommend existing customers to use the [Arduino IDE software](https://www.arduino.cc/en/software).
26
37
> NOTE:
48
> This is a community maintained fork of [Microsoft's vscode arduino extension](https://github.com/microsoft/vscode-arduino)

build/build.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
zipSources: false
2828
condition: ne(variables['Build.Reason'], 'PullRequest')
2929
- task: NodeTool@0
30-
displayName: Use Node 16.x
30+
displayName: Use Node 18.x
3131
inputs:
32-
versionSpec: 16.x
32+
versionSpec: 18.x
33+
- task: UsePythonVersion@0
34+
displayName: Use Python 3.8
35+
inputs:
36+
versionSpec: 3.8
3337
- ${{ if parameters.prerelease }}:
3438
- pwsh: node -e "p=require('./package.json');p.version=p.version.replace(/\.\d+$/,'.'+$(Build.BuildNumber));require('fs').writeFileSync('./package.json',JSON.stringify(p,undefined,2))"
3539
- script: npm install --global gulp node-gyp @vscode/vsce
@@ -49,10 +53,14 @@ jobs:
4953
displayName: Use production AI key
5054
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
5155
- ${{ if parameters.prerelease }}:
52-
- script: node build/package.js --pre-release
56+
- pwsh: |
57+
$env:NODE_OPTIONS="--no-experimental-fetch --openssl-legacy-provider"
58+
node build/package.js --pre-release
5359
displayName: Build and pack extension
5460
- ${{ else }}:
55-
- script: node build/package.js
61+
- pwsh: |
62+
$env:NODE_OPTIONS="--no-experimental-fetch --openssl-legacy-provider"
63+
node build/package.js
5664
displayName: Build and pack extension
5765
- pwsh: |
5866
$path = Join-Path $Env:TEMP "7z-installer.exe"

build/prerelease.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extends:
5454
- download: current
5555
artifact: extension-vsixes
5656
- task: NodeTool@0
57-
displayName: Use Node 16.x
57+
displayName: Use Node 18.x
5858
inputs:
59-
versionSpec: 16.x
59+
versionSpec: 18.x
6060
- script: npm install --global @vscode/vsce
6161
displayName: Install vsce
6262
- script: for f in $(Pipeline.Workspace)/extension-vsixes/*.vsix; do vsce publish --packagePath $f; done

0 commit comments

Comments
 (0)