File tree 5 files changed +51
-25
lines changed
5 files changed +51
-25
lines changed Original file line number Diff line number Diff line change @@ -30,23 +30,23 @@ runs:
30
30
${{ runner.os }}-pip-build-vsix-
31
31
32
32
# For faster/better builds of sdists.
33
- - name : Update pip, install pipx and install wheel
34
- run : python -m pip install -U pip pipx wheel
33
+ - name : Update pip, install nox and install wheel
34
+ run : python -m pip install -U pip nox wheel
35
35
shell : bash
36
36
37
37
- name : Run npm ci
38
38
run : npm ci --prefer-offline
39
39
shell : bash
40
40
41
41
- name : Install bundled python libraries
42
- run : pipx run nox --session install_bundled_libs
42
+ run : python -m nox --session install_bundled_libs
43
43
shell : bash
44
44
45
45
# Use the GITHUB_RUN_ID environment variable to update the build number.
46
46
# GITHUB_RUN_ID is a unique number for each run within a repository.
47
47
# This number does not change if you re-run the workflow run.
48
48
- name : Update extension build number
49
- run : pipx run nox --session update_build_number -- $GITHUB_RUN_ID
49
+ run : python -m nox --session update_build_number -- $GITHUB_RUN_ID
50
50
shell : bash
51
51
52
52
- name : Build VSIX
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ runs:
41
41
${{ runner.os }}-pip-lint-
42
42
43
43
# For faster/better builds of sdists.
44
- - name : Update pip, install pipx and install wheel
45
- run : python -m pip install -U pip pipx wheel
44
+ - name : Update pip, install nox and install wheel
45
+ run : python -m pip install -U pip nox wheel
46
46
shell : bash
47
47
48
48
# This will install libraries to a target directory.
49
49
- name : Install bundled python libraries
50
- run : pipx run nox --session install_bundled_libs
50
+ run : python -m nox --session install_bundled_libs
51
51
shell : bash
52
52
53
53
- name : Check linting and formatting
54
- run : pipx run nox --session lint
54
+ run : python -m nox --session lint
55
55
shell : bash
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ jobs:
58
58
with :
59
59
python-version : ' 3.7'
60
60
61
- - name : Update pip, install pipx and install wheel
62
- run : python -m pip install -U pip pipx wheel
61
+ - name : Update pip, install nox and install wheel
62
+ run : python -m pip install -U pip nox wheel
63
63
shell : bash
64
64
65
65
# This will install libraries to a target directory.
66
66
- name : Install bundled python libraries
67
- run : pipx run nox --session install_bundled_libs
67
+ run : python -m nox --session install_bundled_libs
68
68
shell : bash
69
69
70
70
- name : Install Node
85
85
python-version : ${{ matrix.python }}
86
86
87
87
# The new python may not have nox so install it again
88
- - name : Update pip, install pipx and install wheel (again)
89
- run : python -m pip install -U pip pipx wheel
88
+ - name : Update pip, install nox and install wheel (again)
89
+ run : python -m pip install -U pip nox wheel
90
90
shell : bash
91
91
92
92
- name : Start xvfb on Linux
97
97
if : ${{ runner.os }} == 'Linux'
98
98
99
99
- name : Run tests
100
- run : pipx run nox --session tests
100
+ run : python -m nox --session tests
101
101
shell : bash
102
102
env :
103
103
DISPLAY : ${{ env.DISPLAY }}
Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ jobs:
63
63
with :
64
64
python-version : ' 3.7'
65
65
66
- - name : Update pip, install pipx and install wheel
67
- run : python -m pip install -U pip pipx wheel
66
+ - name : Update pip, install nox and install wheel
67
+ run : python -m pip install -U pip nox wheel
68
68
shell : bash
69
69
70
70
# This will install libraries to a target directory.
71
71
- name : Install bundled python libraries
72
- run : pipx run nox --session install_bundled_libs
72
+ run : python -m nox --session install_bundled_libs
73
73
shell : bash
74
74
75
75
- name : Install Node
90
90
python-version : ${{ matrix.python }}
91
91
92
92
# The new python may not have nox so install it again
93
- - name : Update pip, install pipx and install wheel (again)
94
- run : python -m pip install -U pip pipx wheel
93
+ - name : Update pip, install nox and install wheel (again)
94
+ run : python -m pip install -U pip nox wheel
95
95
shell : bash
96
96
97
97
- name : Start xvfb on Linux
@@ -102,5 +102,5 @@ jobs:
102
102
if : ${{ runner.os }} == 'Linux'
103
103
104
104
- name : Run tests
105
- run : pipx run nox --session tests
105
+ run : python -m nox --session tests
106
106
shell : bash
Original file line number Diff line number Diff line change @@ -24,6 +24,32 @@ extends:
24
24
template : azure-pipelines/extension/stable.yml@templates
25
25
parameters :
26
26
l10nSourcePaths : ./src
27
+ buildPlatforms :
28
+ - name : Linux
29
+ packageArch : arm64
30
+ vsceTarget : linux-arm64
31
+ - name : Linux
32
+ packageArch : arm
33
+ vsceTarget : linux-armhf
34
+ - name : Linux
35
+ packageArch : x64
36
+ vsceTarget : linux-x64
37
+ - name : MacOS
38
+ packageArch : arm64
39
+ vsceTarget : darwin-arm64
40
+ - name : MacOS
41
+ packageArch : x64
42
+ vsceTarget : darwin-x64
43
+ - name : Windows
44
+ packageArch : arm
45
+ vsceTarget : win32-arm64
46
+ - name : Windows
47
+ packageArch : ia32
48
+ vsceTarget : win32-ia32
49
+ - name : Windows
50
+ packageArch : x64
51
+ vsceTarget : win32-x64
52
+
27
53
publishExtension : ${{ parameters.publishExtension }}
28
54
buildSteps :
29
55
- task : NodeTool@0
@@ -44,14 +70,14 @@ extends:
44
70
- script : python -m pip install -U pip
45
71
displayName : Upgrade pip
46
72
47
- - script : python -m pip install wheel
48
- displayName : Install wheel
49
-
50
- - script : python -m pip install nox
51
- displayName : Install wheel
73
+ - script : python -m pip install wheel nox
74
+ displayName : Install wheel and nox
52
75
76
+ # update according packageArch
53
77
- script : python -m nox --session install_bundled_libs
54
78
displayName : Install Python dependencies
79
+ env :
80
+ VSCETARGET : ${{ variables.VSCETARGET }}
55
81
56
82
- script : python ./build/update_ext_version.py --release --for-publishing
57
83
displayName : Update build number
You can’t perform that action at this time.
0 commit comments