File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,17 +23,41 @@ name: 'Build xPack Windows Build Tools'
2323
2424on :
2525 workflow_dispatch :
26+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
2627 inputs :
2728 version :
2829 description : ' The semver of the release'
2930 required : false
31+ type : string
3032 default : ' current'
33+ xpm_version :
34+ description : ' The version of xpm to install'
35+ required : false
36+ type : string
37+ default : ' next'
38+ xpm_install_loglevel :
39+ description : ' Optional loglevel for xpm install'
40+ required : false
41+ default : ' info'
42+ type : choice
43+ options :
44+ - silent
45+ - warn
46+ - info
47+ - verbose
48+ - debug
49+ - trace
50+ xpm_install_options :
51+ description : ' Optional switches to pass to xpm install'
52+ required : false
53+ type : string
54+ default : ' '
3155
3256jobs :
3357
3458
3559 linux-x64-w :
36- name : ' Linux Intel W - Windows Build Tools ${{ github.event.inputs.version }} build'
60+ name : ' Linux Intel W - windows-build-tools ${{ github.event.inputs.version }} build'
3761 timeout-minutes : 5760 # 4 days
3862 runs-on : [self-hosted, linux, x64]
3963 container :
@@ -64,16 +88,18 @@ jobs:
6488
6589 - name : ' Install xpm'
6690 timeout-minutes : 1440
67- run : npm install --location=global xpm@latest
91+ run : |
92+ npm install --location=global xpm@${{ github.event.inputs.xpm_version }}
93+ xpm --version
6894
6995 - name : ' Install project dependencies'
7096 timeout-minutes : 1440
71- run : xpm install
97+ run : xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
7298
7399 - name : ' Build Windows x64 binary'
74100 timeout-minutes : 1440
75101 run : |
76- xpm install --config win32-x64
102+ xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
77103 xpm run build --config win32-x64
78104
79105 - name : ' Publish pre-release'
Original file line number Diff line number Diff line change @@ -23,16 +23,40 @@ name: 'Build xPack Windows Build Tools xbbli'
2323
2424on :
2525 workflow_dispatch :
26+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
2627 inputs :
2728 version :
2829 description : ' The semver of the release'
2930 required : false
31+ type : string
3032 default : ' current'
33+ xpm_version :
34+ description : ' The version of xpm to install'
35+ required : false
36+ type : string
37+ default : ' next'
38+ xpm_install_loglevel :
39+ description : ' Optional loglevel for xpm install'
40+ required : false
41+ default : ' info'
42+ type : choice
43+ options :
44+ - silent
45+ - warn
46+ - info
47+ - verbose
48+ - debug
49+ - trace
50+ xpm_install_options :
51+ description : ' Optional switches to pass to xpm install'
52+ required : false
53+ type : string
54+ default : ' '
3155
3256jobs :
3357
3458 linux-x64-w :
35- name : ' Linux Intel W - Windows Build Tools ${{ github.event.inputs.version }} build'
59+ name : ' Linux Intel W - windows-build-tools ${{ github.event.inputs.version }} build'
3660 timeout-minutes : 5760 # 4 days
3761 runs-on : [self-hosted, linux, x64]
3862 container :
@@ -63,16 +87,18 @@ jobs:
6387
6488 - name : ' Install xpm'
6589 timeout-minutes : 1440
66- run : npm install --location=global xpm@latest
90+ run : |
91+ npm install --location=global xpm@${{ github.event.inputs.xpm_version }}
92+ xpm --version
6793
6894 - name : ' Install project dependencies'
6995 timeout-minutes : 1440
70- run : xpm install
96+ run : xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
7197
7298 - name : ' Build Windows x64 binary'
7399 timeout-minutes : 1440
74100 run : |
75- xpm install --config win32-x64
101+ xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
76102 xpm run build --config win32-x64
77103
78104 - name : ' Publish pre-release'
Original file line number Diff line number Diff line change 3232jobs :
3333
3434 linux-x64 :
35- name : ' Linux Intel - Windows Build Tools ${{ github.event.inputs.version }} clean'
35+ name : ' Linux Intel - windows-build-tools ${{ github.event.inputs.version }} clean'
3636 timeout-minutes : 5760 # 4 days
3737 runs-on : [self-hosted, linux, x64]
3838 steps :
Original file line number Diff line number Diff line change 4141jobs :
4242
4343 windows-x64 :
44- name : ' Windows x64 Windows Build Tools ${{ github.event.inputs.version }} test'
44+ name : ' Windows x64 windows-build-tools ${{ github.event.inputs.version }} test'
4545 runs-on : windows-2022
4646 defaults :
4747 run :
Original file line number Diff line number Diff line change 2828 version :
2929 description : ' The semver of the npm release'
3030 required : false
31- default : ' latest '
31+ default : ' next '
3232 helper-git-ref :
3333 description : ' The helper branch, tag or SHA to checkout'
3434 required : false
You can’t perform that action at this time.
0 commit comments