File tree 4 files changed +64
-6
lines changed
4 files changed +64
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Windows Build Combine
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ build-windows-combined :
8
+ name : Combine Windows binaries
9
+ timeout-minutes : 15
10
+ runs-on : windows-latest
11
+ steps :
12
+ - name : Fetch x64 build
13
+ uses : actions/download-artifact@v4
14
+ with :
15
+ name : librealm-windows-x64
16
+ path : packages/realm_dart/binary/windows
17
+
18
+ - name : Fetch arm64 build
19
+ uses : actions/download-artifact@v4
20
+ with :
21
+ name : librealm-windows-arme64
22
+ path : packages/realm_dart/binary/windows
23
+
24
+ - name : Store combined artifact
25
+ uses : actions/upload-artifact@v4
26
+ with :
27
+ name : librealm-windows
28
+ path : packages/realm_dart/binary/windows
29
+ retention-days : 1
30
+
31
+ - name : Delete individual build artifacts
32
+ uses : geekyeggo/delete-artifact@v4
33
+ with :
34
+ name : |
35
+ librealm-windows-x64
36
+ librealm-windows-arm64
37
+ failOnError : false
Original file line number Diff line number Diff line change 21
21
with :
22
22
runner : windows-latest
23
23
binary : windows
24
- build : ' ["windows"]'
24
+ build : ' ["windows-x64", "windows-arm64 "]'
25
25
26
26
build-macos :
27
27
name : Build MacOS
Original file line number Diff line number Diff line change 28
28
"name" : " windows" ,
29
29
"inherits" : " default" ,
30
30
"generator" : " Visual Studio 17 2022" ,
31
- "architecture" : " x64" ,
32
31
"condition" : {
33
32
"lhs" : " ${hostSystemName}" ,
34
33
"type" : " equals" ,
35
34
"rhs" : " Windows"
36
35
}
37
36
},
37
+ {
38
+ "name" : " windows-x64" ,
39
+ "inherits" : " windows" ,
40
+ "architecture" : " x64"
41
+ },
42
+ {
43
+ "name" : " windows-arm64" ,
44
+ "inherits" : " windows" ,
45
+ "architecture" : " ARM64"
46
+ },
38
47
{
39
48
"name" : " macos" ,
40
49
"displayName" : " macOS" ,
125
134
"configuration" : " Debug"
126
135
},
127
136
{
128
- "name" : " windows" ,
129
- "configurePreset" : " windows" ,
137
+ "name" : " windows-x64 " ,
138
+ "configurePreset" : " windows-x64 " ,
130
139
"displayName" : " x64" ,
131
140
"configuration" : " Debug"
132
141
},
142
+ {
143
+ "name" : " windows-arm64" ,
144
+ "configurePreset" : " windows-arm64" ,
145
+ "displayName" : " arm64" ,
146
+ "configuration" : " Debug"
147
+ },
133
148
{
134
149
"name" : " android-x86_64" ,
135
150
"configurePreset" : " android-x86_64" ,
Original file line number Diff line number Diff line change 7
7
pushd " %~dp0 .."
8
8
echo %CD%
9
9
10
- cmake --preset windows
11
- cmake --build --preset windows --config MinSizeRel
10
+ @ REM only building for x64 if no arguments
11
+ set ABIS = x64 arm64
12
+ if [%1 ]== [] set ABIS = x64
13
+
14
+ (for %%a in (%ABIS% ) do (
15
+ cmake --preset windows-%%a
16
+ cmake --build --preset windows-%%a --config MinSizeRel
17
+ ))
You can’t perform that action at this time.
0 commit comments