-
Notifications
You must be signed in to change notification settings - Fork 2
600 lines (492 loc) · 20.6 KB
/
build-libs.yml
File metadata and controls
600 lines (492 loc) · 20.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
name: Build Libraries
on:
push:
paths:
- .github/workflows/**
- source/**
- patches/**
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
env:
BUILD_TYPE: Release
NET_FRAMEWORK: net7.0
jobs:
build-fnalibs:
strategy:
matrix:
include:
- name: Windows x86
os: windows-latest
platform: windows
msys2_system: mingw32
msys2_env: i686
cmake_flags: --verbose --parallel
- name: Windows x64
os: windows-latest
platform: windows
msys2_system: mingw64
msys2_env: x86_64
cmake_flags: --verbose --parallel
- name: Linux x64
os: ubuntu-latest
platform: linux
container: debian:buster # Required for GLIBC v2.28
cmake_flags:
- name: macOS x64
os: macos-13
platform: macos
cmake_flags: --verbose --parallel
name: FNAlibs (${{ matrix.name }})
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
env:
MACOSX_DEPLOYMENT_TARGET: 10.12
defaults:
run:
shell: sh
steps:
- name: Install Git and cURL (Linux)
if: ${{ matrix.platform == 'linux' }}
run: |
# Debian buster is now EOL, need to set APT to use the package archive.
sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
apt-get update
apt-get install -y git curl ca-certificates
- name: Checkout repository (Windows & macOS)
uses: actions/checkout@v4
if: ${{ matrix.platform != 'linux' }}
with:
sparse-checkout: |
source
patches
submodules: recursive
# Need to use CLI since checkout action doesn't like that Git was installed manually
- name: Checkout repository (Linux)
if: ${{ matrix.platform == 'linux' }}
run: |
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
git init
git remote add origin https://github.com/${{ github.repository }}.git
git config core.sparseCheckout true
echo "source" >> .git/info/sparse-checkout
echo "patches" >> .git/info/sparse-checkout
git fetch --depth=1 origin ${{ github.ref }}
git checkout FETCH_HEAD
git submodule update --init --recursive
# Setup
- name: Set up MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.platform == 'windows' }}
with:
arch: ${{ matrix.msys2_env == 'x86_64' && 'x64' || 'x86' }}
- name: Setup CMake (Windows)
uses: jwlawson/actions-setup-cmake@master
if: ${{ matrix.platform == 'windows' }}
- name: Set up Ninja (Windows)
uses: turtlesec-no/get-ninja@main
if: ${{ matrix.platform == 'windows' }}
- name: Set up NASM (Windows)
uses: ilammy/setup-nasm@v1
if: ${{ matrix.platform == 'windows' }}
- name: Set up MSYS2 (Windows)
uses: msys2/setup-msys2@v2
if: ${{ matrix.platform == 'windows' }}
with:
msystem: ${{ matrix.msys2_system }}
install: >-
mingw-w64-${{ matrix.msys2_env }}-cc
mingw-w64-${{ matrix.msys2_env }}-make
- name: Install dependencies (macOS)
if: ${{ matrix.platform == 'macos' }}
run: |
# SDL2 dependencies
brew install ninja
- name: Install dependencies (Linux)
if: ${{ matrix.platform == 'linux' }}
run: |
# SDL2 dependencies (https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md)
apt-get install -y build-essential make \
pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev \
libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev \
libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev \
libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev
# Setup Debian Bullseye PPA for newer CMake and Wayland version
echo "deb http://deb.debian.org/debian bullseye main" >> /etc/apt/sources.list
echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list
echo "deb http://archive.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
cat <<EOF > /etc/apt/preferences.d/bullseye
Package: *
Pin: release n=bullseye
Pin-Priority: 100
EOF
apt-get update
apt-get install -y -t bullseye cmake libwayland-dev libdecor-0-dev
# SDL2
- name: Configure SDL2
working-directory: source/SDL2
run: |
cmake -B build -G Ninja \
-DSDL_VENDOR_INFO="GitHub Workflow" \
-DSDL_CMAKE_DEBUG_POSTFIX="" \
-DSDL_FORCE_STATIC_VCRT=ON \
-DCMAKE_INSTALL_PREFIX=cmake_prefix \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build SDL2
working-directory: source/SDL2
run: cmake --build build --config ${{ env.BUILD_TYPE }} ${{ matrix.cmake_flags }}
- name: Install SDL2
working-directory: source/SDL2
run: |
set -eu
cmake --install build --config ${{ env.BUILD_TYPE }}
echo "SDL2_DIR=$(pwd)/cmake_prefix" >> $GITHUB_ENV
- name: Export SDL2 library path (Windows)
if: ${{ matrix.platform == 'windows' }}
run: echo "SDL2_LIB=${{ env.SDL2_DIR }}/lib/SDL2.lib" >> $GITHUB_ENV
- name: Export SDL2 library path (macOS)
if: ${{ matrix.platform == 'macos' }}
run: echo "SDL2_LIB=${{ env.SDL2_DIR }}/lib/libSDL2-2.0.dylib" >> $GITHUB_ENV
- name: Export SDL2 library path (Linux)
if: ${{ matrix.platform == 'linux' }}
run: echo "SDL2_LIB=${{ env.SDL2_DIR }}/lib/libSDL2-2.0.so" >> $GITHUB_ENV
# FNA3D
- name: Patch FNA3D + MojoShader
working-directory: source/FNA/lib/FNA3D
run: |
# Required for applying patches
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git am ../../../../patches/FNA3D_ExclusiveFullscreen.patch
git am ../../../../patches/FNA3D_Headless.patch
if [ "x${{ runner.os }}" = "xWindows" ]; then
# Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
fi
cd MojoShader
git am ../../../../../patches/MojoShader_Headless.patch
cd ..
- name: Configure FNA3D
working-directory: source/FNA/lib/FNA3D
run: |
cmake -B build -G Ninja \
-DSDL_PTHREADS=OFF \
-DSDL2_INCLUDE_DIRS=${{ env.SDL2_DIR }}/include/SDL2 \
-DSDL2_LIBRARIES=${{ env.SDL2_LIB }} \
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build FNA3D
working-directory: source/FNA/lib/FNA3D
run: cmake --build build --config ${{ env.BUILD_TYPE }} ${{ matrix.cmake_flags }}
# FAudio
- name: Patch FAudio
working-directory: source/FNA/lib/FAudio
run: |
if [ "x${{ runner.os }}" = "xWindows" ]; then
# Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
fi
- name: Configure FAudio
working-directory: source/FNA/lib/FAudio
run: |
cmake -B build -G Ninja \
-DSDL_PTHREADS=OFF \
-DSDL2_INCLUDE_DIRS=${{ env.SDL2_DIR }}/include/SDL2 \
-DSDL2_LIBRARIES=${{ env.SDL2_LIB }} \
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build FAudio
working-directory: source/FNA/lib/FAudio
run: cmake --build build --config ${{ env.BUILD_TYPE }} ${{ matrix.cmake_flags }}
# Theorafile
- name: Build Theorafile (Windows)
if: ${{ matrix.platform == 'windows' }}
working-directory: source/FNA/lib/Theorafile
shell: msys2 {0}
run: mingw32-make
- name: Build Theorafile (macOS & Linux)
if: ${{ matrix.platform != 'windows' }}
working-directory: source/FNA/lib/Theorafile
run: make
# MoltenVK
- name: Build MoltenVK (macOS)
if: ${{ matrix.platform == 'macos' }}
working-directory: source/MoltenVK
run: |
./fetchDependencies --macos -v
make macos
- name: Build Vulkan Loader (macOS)
if: ${{ matrix.platform == 'macos' }}
working-directory: source/Vulkan-Loader
run: |
mkdir -p build
cd build
cmake .. \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-DUPDATE_DEPS=ON \
-DVULKAN_HEADERS_INSTALL_DIR="$PWD/../../Vulkan-Headers" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
make
# To downgrade Celeste builds that target sdl3 to sdl2, on linux specifically, we need to replace libfmod_SDL.so, since it targets SDL3
- name: Build FMOD_SDL (linux)
if: ${{ matrix.platform == 'linux' }}
working-directory: source/FMOD_SDL_BUILD_DEPS
run: |
make -e SDL2_PREFIX=${{ env.SDL2_DIR }}
# FNA (Only built on Linux, due to being platform agnostic)
- uses: actions/setup-dotnet@v4
if: ${{ matrix.platform == 'linux' }}
with:
dotnet-version: '8'
- name: Build FNA
if: ${{ matrix.platform == 'linux' }}
working-directory: source/FNA
run: dotnet build -c ${{ env.BUILD_TYPE }} FNA.NetFramework.csproj
# Upload
- name: Copy binaries (Windows)
if: ${{ matrix.platform == 'windows' }}
run: |
cp ${{ env.SDL2_DIR }}/bin/SDL2.dll SDL2.dll
cp source/FNA/lib/FAudio/build/FAudio.dll FAudio.dll
cp source/FNA/lib/FNA3D/build/FNA3D.dll FNA3D.dll
cp source/FNA/lib/Theorafile/libtheorafile.dll libtheorafile.dll
- name: Copy binaries (macOS)
if: ${{ matrix.platform == 'macos' }}
run: |
cp ${{ env.SDL2_DIR }}/lib/libSDL2-2.0.0.dylib libSDL2-2.0.0.dylib
cp source/FNA/lib/FAudio/build/libFAudio.0.dylib libFAudio.0.dylib
cp source/FNA/lib/FNA3D/build/libFNA3D.0.dylib libFNA3D.0.dylib
cp source/FNA/lib/Theorafile/libtheorafile.dylib libtheorafile.dylib
cp source/MoltenVK/Package/Release/MoltenVK/dylib/macOS/libMoltenVK.dylib libMoltenVK.dylib
cp source/Vulkan-Loader/build/loader/libvulkan.1.dylib libvulkan.1.dylib
- name: Copy binaries (Linux)
if: ${{ matrix.platform == 'linux' }}
run: |
cp source/FNA/bin/${{ env.BUILD_TYPE }}/net4.0/FNA.dll FNA.dll
cp source/FNA/bin/${{ env.BUILD_TYPE }}/net4.0/FNA.pdb FNA.pdb
cp ${{ env.SDL2_DIR }}/lib/libSDL2-2.0.so.0 libSDL2-2.0.so.0
cp source/FNA/lib/FAudio/build/libFAudio.so.0 libFAudio.so.0
cp source/FNA/lib/FNA3D/build/libFNA3D.so.0 libFNA3D.so.0
cp source/FNA/lib/Theorafile/libtheorafile.so libtheorafile.so
cp source/FMOD_SDL_BUILD_DEPS/libfmod_SDL.so libfmod_SDL.so
- name: Upload Artifacts (Windows)
uses: actions/upload-artifact@v4
if: ${{ matrix.platform == 'windows' }}
with:
name: fnalibs-windows-${{ matrix.msys2_env }}
path: |
SDL2.dll
FAudio.dll
FNA3D.dll
libtheorafile.dll
- name: Upload Artifacts (macOS)
uses: actions/upload-artifact@v4
if: ${{ matrix.platform == 'macos' }}
with:
name: fnalibs-macos-x86_64
path: |
libSDL2-2.0.0.dylib
libFAudio.0.dylib
libFNA3D.0.dylib
libtheorafile.dylib
libMoltenVK.dylib
libvulkan.1.dylib
- name: Upload Artifacts (Linux)
uses: actions/upload-artifact@v4
if: ${{ matrix.platform == 'linux' }}
with:
name: fnalibs-linux-x86_64
path: |
FNA.dll
FNA.pdb
libSDL2-2.0.so.0
libFAudio.so.0
libFNA3D.so.0
libtheorafile.so
libfmod_SDL.so
build-piton:
strategy:
matrix:
include:
- name: Windows x86
os: windows-latest
toolchain: 1.77.0-x86_64-pc-windows-msvc # Last version to support Windows 7
target: i686-pc-windows-msvc
ui: gui
lib_name: piton-gui-win_x86.exe
- name: Windows x64
os: windows-latest
toolchain: 1.77.0-x86_64-pc-windows-msvc # Last version to support Windows 7
target: x86_64-pc-windows-msvc
ui: gui
lib_name: piton-gui-win_x64.exe
- name: Linux x64
os: ubuntu-latest
toolchain: 1.86.0-x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
ui: none
lib_name: piton-linux_x64
container: quay.io/pypa/manylinux_2_28_x86_64 # See https://kobzol.github.io/rust/ci/2021/05/07/building-rust-binaries-in-ci-that-work-with-older-glibc.html
- name: macOS x64
os: macos-13
toolchain: 1.86.0-x86_64-apple-darwin
target: x86_64-apple-darwin
ui: gui
lib_name: piton-gui-macos_x64
name: Piton (${{ matrix.name }})
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
env:
CARGO_TERM_COLOR: always
MACOSX_DEPLOYMENT_TARGET: 10.12
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: source/Piton
submodules: true
- name: Setup environment variables
run: |
echo "RUSTUP_HOME=$HOME/.rustup" >> "$GITHUB_ENV"
echo "CARGO_HOME=$HOME/.cargo" >> "$GITHUB_ENV"
- name: Setup Rust toolchain
if: ${{ !steps.cache.outputs.cache-hit }}
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} --target ${{ matrix.target }} -y
- name: Build Piton binary
working-directory: source/Piton/apphost
run: ~/.cargo/bin/cargo build --verbose --release --target ${{ matrix.target }} -F ui-${{ matrix.ui }}
- name: Move Piton binary
working-directory: source/Piton/apphost
run: mv target/${{ matrix.target }}/release/${{ startsWith(matrix.os, 'windows') && 'piton.exe' || 'piton' }} ${{ matrix.lib_name }}
- name: Upload Piton binaries
uses: actions/upload-artifact@v4
with:
name: piton-apphosts-${{ matrix.target }}
path: source/Piton/apphost/${{ matrix.lib_name }}
build-steamworks-net:
name: Steamworks.NET
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: source/Steamworks.NET
submodules: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8'
- name: Build Steamworks.NET
working-directory: source/Steamworks.NET/Standalone
run: dotnet build -t:BatchBuild Steamworks.NET.Standard.sln
- name: Upload Steamworks.NET binaries
uses: actions/upload-artifact@v4
with:
name: steamworks-net
path: source/Steamworks.NET/Standalone/bin/x*
generate-lib-ext:
name: Generate lib-ext
runs-on: ubuntu-latest
needs: [build-fnalibs, build-piton, build-steamworks-net]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup file structure
run: |
rm -rf ../lib-ext ../binaries
mkdir ../lib-ext ../binaries
- name: Merge Piton apphosts
uses: actions/upload-artifact/merge@v4
with:
name: piton-apphosts
pattern: piton-apphosts-*
- uses: actions/download-artifact@v4
with:
path: ../binaries
- name: Download Discord Game SDK v3.2.1
run: |
wget https://dl-game-sdk.discordapp.net/3.2.1/discord_game_sdk.zip --output-document ../binaries/discord_game_sdk.zip
unzip ../binaries/discord_game_sdk.zip -d ../binaries/discord_game_sdk
- name: Display structure of downloaded files
run: ls -R ../binaries
- name: Setup lib-ext
run: |
### Directory structure
mkdir -p ../lib-ext/lib-vanilla
mkdir -p ../lib-ext/lib-vanilla/osx
mkdir -p ../lib-ext/lib-vanilla/lib
mkdir -p ../lib-ext/lib-vanilla/lib64
mkdir -p ../lib-ext/lib64-win-x86
mkdir -p ../lib-ext/lib64-win-x64
mkdir -p ../lib-ext/lib64-osx
mkdir -p ../lib-ext/lib64-linux
### Vendored files
cp README_lib-ext.md ../lib-ext/README.md
cp source/SDL_GameControllerDB/gamecontrollerdb.txt ../lib-ext
# Windows x86
cp source/Steamworks.NET/com.rlabrecque.steamworks.net/Plugins/steam_api.dll ../lib-ext/lib64-win-x86
# Windows x64
cp source/Steamworks.NET/com.rlabrecque.steamworks.net/Plugins/steam_api64.dll ../lib-ext/lib64-win-x64
cp binaries/fmod/windows-x64/fmod64.dll ../lib-ext/lib64-win-x64
cp binaries/fmod/windows-x64/fmodstudio64.dll ../lib-ext/lib64-win-x64
# OSX
cp source/Steamworks.NET/com.rlabrecque.steamworks.net/Plugins/steam_api.bundle/Contents/MacOS/libsteam_api.dylib ../lib-ext/lib64-osx
# Linux x64
cp source/Steamworks.NET/com.rlabrecque.steamworks.net/Plugins/libsteam_api.so ../lib-ext/lib64-linux
# Piton
cp piton-runtime.yaml ../lib-ext/piton-runtime.yaml
pushd ../lib-ext
### Vanilla overrides
cp ../binaries/fnalibs-linux-x86_64/FNA.dll lib-vanilla
cp ../binaries/fnalibs-linux-x86_64/FNA.pdb lib-vanilla
# Windows x86
cp ../binaries/fnalibs-windows-i686/FNA3D.dll lib-vanilla
cp ../binaries/fnalibs-windows-i686/FAudio.dll lib-vanilla
cp ../binaries/fnalibs-windows-i686/SDL2.dll lib-vanilla
cp ../binaries/fnalibs-windows-i686/libtheorafile.dll lib-vanilla
# macOS x64
cp ../binaries/fnalibs-macos-x86_64/libFNA3D.0.dylib lib-vanilla/osx
cp ../binaries/fnalibs-macos-x86_64/libFAudio.0.dylib lib-vanilla/osx
cp ../binaries/fnalibs-macos-x86_64/libSDL2-2.0.0.dylib lib-vanilla/osx
cp ../binaries/fnalibs-macos-x86_64/libtheorafile.dylib lib-vanilla/osx
cp ../binaries/fnalibs-macos-x86_64/libMoltenVK.dylib lib-vanilla/osx
cp ../binaries/fnalibs-macos-x86_64/libvulkan.1.dylib lib-vanilla/osx
# Linux x64
cp ../binaries/fnalibs-linux-x86_64/libSDL2-2.0.so.0 lib-vanilla/lib64
cp ../binaries/fnalibs-linux-x86_64/libFAudio.so.0 lib-vanilla/lib64
cp ../binaries/fnalibs-linux-x86_64/libFNA3D.so.0 lib-vanilla/lib64
cp ../binaries/fnalibs-linux-x86_64/libtheorafile.so lib-vanilla/lib64
### Everest Libraries
mv ../binaries/fnalibs-linux-x86_64/FNA.dll .
mv ../binaries/fnalibs-linux-x86_64/FNA.pdb .
mv ../binaries/fnalibs-windows-i686/* lib64-win-x86
mv ../binaries/fnalibs-windows-x86_64/* lib64-win-x64
mv ../binaries/fnalibs-macos-x86_64/* lib64-osx
mv ../binaries/fnalibs-linux-x86_64/* lib64-linux
cp ../binaries/discord_game_sdk/lib/x86/discord_game_sdk.dll lib64-win-x86
cp ../binaries/discord_game_sdk/lib/x86_64/discord_game_sdk.dll lib64-win-x64
cp ../binaries/discord_game_sdk/lib/x86_64/discord_game_sdk.dylib lib64-osx/libdiscord_game_sdk.dylib
cp ../binaries/discord_game_sdk/lib/x86_64/discord_game_sdk.so lib64-linux/libdiscord_game_sdk.so
cp ../binaries/steamworks-net/x86/Windows/netstandard2.1/Steamworks.NET.dll lib64-win-x86
cp ../binaries/steamworks-net/x64/Windows/netstandard2.1/Steamworks.NET.dll lib64-win-x64
cp ../binaries/steamworks-net/x64/OSX-Linux/netstandard2.1/Steamworks.NET.dll lib64-osx
cp ../binaries/steamworks-net/x64/OSX-Linux/netstandard2.1/Steamworks.NET.dll lib64-linux
### Piton
mv ../binaries/piton-apphosts piton
- name: Display the new structure
run: ls -R ../lib-ext
- name: Commit binaries to repository
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git checkout -b binaries
git fetch origin binaries
git reset --hard origin/binaries
rm -rf *
cp -r ../lib-ext/* .
git add -f .
git commit -m "Update binaries for ${{ github.sha }}" || true
git push origin binaries