6
6
build-version :
7
7
description : ' Electron version to build'
8
8
required : true
9
- default : ' 30.0.0 '
9
+ default : ' 30'
10
10
type : choice
11
11
options :
12
- - 29.0.0
13
- - 30.0.0
14
- - 31.0.0
15
- - 32.0.0
16
- - 33.0.0
12
+ - 29
13
+ - 30
14
+ - 31
15
+ - 32
17
16
# test-version:
18
17
# description: 'Electron version to test build'
19
18
# required: true
@@ -51,20 +50,22 @@ jobs:
51
50
id : electron-test-version
52
51
shell : bash
53
52
run : |
54
- if [[ ${{ inputs.build-version }} == '29.0.0 ' ]]; then
53
+ if [[ ${{ inputs.build-version }} == '29' ]]; then
55
54
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
56
- elif [[ ${{ inputs.build-version }} == '30.0.0 ' ]]; then
55
+ elif [[ ${{ inputs.build-version }} == '30' ]]; then
57
56
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
58
- elif [[ ${{ inputs.build-version }} == '31.0.0 ' ]]; then
57
+ elif [[ ${{ inputs.build-version }} == '31' ]]; then
59
58
echo "test-version=31.6.0" >> $GITHUB_OUTPUT
60
- elif [[ ${{ inputs.build-version }} == '32.0.0' ]]; then
61
- echo "test-version=32.1.2" >> $GITHUB_OUTPUT
59
+ elif [[ ${{ inputs.build-version }} == '32' ]]; then
60
+ echo "test-version=32.2.0" >> $GITHUB_OUTPUT
61
+ elif [[ ${{ inputs.build-version }} == '33' ]]; then
62
+ echo "test-version=33.0.0" >> $GITHUB_OUTPUT
62
63
fi
63
64
64
65
- name : Setup env
65
66
uses : ./.github/actions/setup-env
66
67
with :
67
- electron : ${{ inputs.build-version }}
68
+ electron : ' ${{ inputs.build-version }}.0.0 '
68
69
os : ${{ matrix.os }}
69
70
70
71
- name : install node-gyp
@@ -73,68 +74,68 @@ jobs:
73
74
74
75
- name : Create release folder
75
76
run : |
76
- mkdir "release\ia32\${{ inputs.build-version }}"
77
- mkdir "release\x64\${{ inputs.build-version }}"
78
- mkdir "release\arm64\${{ inputs.build-version }}"
77
+ mkdir "release\ia32\${{ inputs.build-version }}.0.0 "
78
+ mkdir "release\x64\${{ inputs.build-version }}.0.0 "
79
+ mkdir "release\arm64\${{ inputs.build-version }}.0.0 "
79
80
80
81
- name : Build ia32
81
82
timeout-minutes : 30
82
83
shell : pwsh
83
84
run : |
84
- node-gyp configure --target=${{ inputs.build-version }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=ia32
85
+ node-gyp configure --target=${{ inputs.build-version }}.0.0 --disturl=https://electronjs.org/headers --runtime=electron --release --arch=ia32
85
86
86
- if ( '${{ inputs.build-version }}' -eq '32.0.0' ){
87
+ if ( '${{ inputs.build-version }}' -ge 32 ){
87
88
(Get-Content -Raw build/build_managed.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/build_managed.vcxproj
88
89
(Get-Content -Raw build/edge_coreclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_coreclr.vcxproj
89
90
(Get-Content -Raw build/edge_nativeclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_nativeclr.vcxproj
90
91
}
91
92
92
93
node-gyp build
93
- cmd /c copy /y build\Release\edge_*.node release\ia32\${{ inputs.build-version }}
94
+ cmd /c copy /y build\Release\edge_*.node release\ia32\${{ inputs.build-version }}.0.0
94
95
cmd /c rmdir /S /Q build
95
96
96
97
- name : Build x64
97
98
timeout-minutes : 30
98
99
shell : pwsh
99
100
run : |
100
- node-gyp configure --target=${{ inputs.build-version }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=x64
101
+ node-gyp configure --target=${{ inputs.build-version }}.0.0 --disturl=https://electronjs.org/headers --runtime=electron --release --arch=x64
101
102
102
- if ( '${{ inputs.build-version }}' -eq '32.0.0' ){
103
+ if ( '${{ inputs.build-version }}' -ge 32 ){
103
104
(Get-Content -Raw build/build_managed.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/build_managed.vcxproj
104
105
(Get-Content -Raw build/edge_coreclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_coreclr.vcxproj
105
106
(Get-Content -Raw build/edge_nativeclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_nativeclr.vcxproj
106
107
}
107
108
108
109
node-gyp build
109
- cmd /c copy /y build\Release\edge_*.node release\x64\${{ inputs.build-version }}
110
+ cmd /c copy /y build\Release\edge_*.node release\x64\${{ inputs.build-version }}.0.0
110
111
cmd /c rmdir /S /Q build
111
112
112
113
- name : Build arm64
113
114
timeout-minutes : 30
114
115
shell : pwsh
115
116
run : |
116
- node-gyp configure --target=${{ inputs.build-version }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=arm64
117
+ node-gyp configure --target=${{ inputs.build-version }}.0.0 --disturl=https://electronjs.org/headers --runtime=electron --release --arch=arm64
117
118
118
119
(Get-Content -Raw build/build_managed.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/build_managed.vcxproj
119
120
(Get-Content -Raw build/edge_coreclr.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/edge_coreclr.vcxproj
120
121
(Get-Content -Raw build/edge_nativeclr.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/edge_nativeclr.vcxproj
121
122
122
- if ( '${{ inputs.build-version }}' -eq '32.0.0' ){
123
+ if ( '${{ inputs.build-version }}' -ge 32 ){
123
124
(Get-Content -Raw build/build_managed.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/build_managed.vcxproj
124
125
(Get-Content -Raw build/edge_coreclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_coreclr.vcxproj
125
126
(Get-Content -Raw build/edge_nativeclr.vcxproj) -replace 'std:c\+\+17', 'std:c++20' | Out-File -Encoding Utf8 build/edge_nativeclr.vcxproj
126
127
}
127
128
128
129
node-gyp build
129
- cmd /c copy /y build\Release\edge_*.node release\arm64\${{ inputs.build-version }}
130
+ cmd /c copy /y build\Release\edge_*.node release\arm64\${{ inputs.build-version }}.0.0
130
131
cmd /c rmdir /S /Q build
131
132
132
133
133
134
- name : Upload artifacts
134
135
uses : actions/upload-artifact@v4
135
136
if : success()
136
137
with :
137
- name : electron-edge-js-${{ inputs.build-version }}
138
+ name : electron-edge-js-${{ inputs.build-version }}.0.0
138
139
path : |
139
140
release
140
141
0 commit comments