File tree Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,16 @@ jobs:
37
37
cd CSFML/tools/nuget
38
38
./build.win.ps1 "win-x64"
39
39
40
+ - name : Build ARM64
41
+ shell : pwsh
42
+ run : |
43
+ cd CSFML/tools/nuget
44
+ ./build.win.ps1 "win-arm64"
45
+
40
46
- name : Upload Artifact
41
47
uses : actions/upload-artifact@v4
42
48
with :
43
- name : CSFML-win-x86-x64
49
+ name : CSFML-win-x86-x64-arm64
44
50
path : CSFML/tools/nuget/CSFML/runtimes
45
51
46
52
linux-x64 :
@@ -213,7 +219,7 @@ jobs:
213
219
214
220
package :
215
221
name : Package Builds
216
- runs-on : ubuntu-22 .04
222
+ runs-on : ubuntu-24 .04
217
223
needs :
218
224
- windows
219
225
- linux-x64
Original file line number Diff line number Diff line change @@ -191,6 +191,45 @@ jobs:
191
191
name : CSFML-windows-64-bit
192
192
path : install/CSFML
193
193
194
+ windows-arm64 :
195
+ name : Windows ARM64
196
+ runs-on : windows-2025
197
+
198
+ steps :
199
+ - name : Checkout SFML
200
+ uses : actions/checkout@v4
201
+ with :
202
+ repository : SFML/SFML
203
+ ref : ${{ env.SFML_VERSION }}
204
+ path : SFML
205
+
206
+ - name : Checkout CSFML
207
+ uses : actions/checkout@v4
208
+ with :
209
+ path : CSFML
210
+
211
+ - name : Build SFML
212
+ run : |
213
+ cmake -S SFML -B SFML-build -A ARM64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
214
+ cmake --build SFML-build --config Release --target install
215
+
216
+ - name : Build CSFML
217
+ run : |
218
+ cmake -S CSFML -B CSFML-build -A ARM64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCSFML_LINK_SFML_STATICALLY=OFF -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=${{ github.workspace }}/SFML-install -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
219
+ cmake --build CSFML-build --config Release --target install
220
+
221
+ - name : Move Files
222
+ shell : pwsh
223
+ run : |
224
+ New-Item -ItemType "directory" -PATH "install\CSFML"
225
+ Move-Item -Path "CSFML-install\*" -Destination "install\CSFML"
226
+
227
+ - name : Upload Artifact
228
+ uses : actions/upload-artifact@v4
229
+ with :
230
+ name : CSFML-windows-arm64
231
+ path : install/CSFML
232
+
194
233
macos-x64 :
195
234
name : macOS x64
196
235
runs-on : macos-13
Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ if (-not $RID) {
18
18
19
19
$Generator = ' Visual Studio 17 2022'
20
20
21
+ # See also: https://learn.microsoft.com/en-us/dotnet/core/rid-catalog#known-rids
21
22
switch ($RID ) {
22
23
' win-x86' {
23
24
$Architecture = ' Win32'
24
25
}
25
26
' win-x64' {
26
27
$Architecture = ' x64'
27
28
}
29
+ ' win-arm64' {
30
+ $Architecture = ' ARM64'
31
+ }
28
32
Default {
29
33
Write-Error " Unknown RID '$RID '"
30
34
exit
@@ -83,7 +87,7 @@ Push-Location "SFML"
83
87
84
88
$SFMLDir = (Get-Item .).FullName
85
89
86
- IF ($RID -ne ' win-x86' -and $RID -ne ' win-x64' ) {
90
+ IF ($RID -ne ' win-x86' -and $RID -ne ' win-x64' -and $RID -ne ' win-arm64 ' ) {
87
91
Write-Error " Unknown RID '$RID '"
88
92
exit
89
93
}
You can’t perform that action at this time.
0 commit comments