Skip to content

Commit e19520c

Browse files
committed
Move FNA build to the new task
1 parent 7159e03 commit e19520c

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

.github/workflows/build-libs.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,6 @@ jobs:
231231
232232
make
233233
234-
# FNA (Only built on Linux, due to being platform agnostic)
235-
- uses: actions/setup-dotnet@v4
236-
if: ${{ matrix.platform == 'linux' }}
237-
with:
238-
dotnet-version: '8'
239-
240-
- name: Build FNA
241-
if: ${{ matrix.platform == 'linux' }}
242-
working-directory: source/FNA
243-
run: dotnet build -c ${{ env.BUILD_TYPE }} FNA.Core.csproj
244-
245234
# Upload
246235
- name: Copy binaries (Windows)
247236
if: ${{ matrix.platform == 'windows' }}
@@ -264,8 +253,6 @@ jobs:
264253
- name: Copy binaries (Linux)
265254
if: ${{ matrix.platform == 'linux' }}
266255
run: |
267-
cp source/FNA/bin/${{ env.BUILD_TYPE }}/${{ env.NET_FRAMEWORK }}/FNA.dll FNA.dll
268-
cp source/FNA/bin/${{ env.BUILD_TYPE }}/${{ env.NET_FRAMEWORK }}/FNA.pdb FNA.pdb
269256
cp ${{ env.SDL2_DIR }}/lib/libSDL2-2.0.so.0 libSDL2-2.0.so.0
270257
cp source/FNA/lib/FAudio/build/libFAudio.so.0 libFAudio.so.0
271258
cp source/FNA/lib/FNA3D/build/libFNA3D.so.0 libFNA3D.so.0
@@ -301,8 +288,6 @@ jobs:
301288
with:
302289
name: fnalibs-linux-x86_64
303290
path: |
304-
FNA.dll
305-
FNA.pdb
306291
libSDL2-2.0.so.0
307292
libFAudio.so.0
308293
libFNA3D.so.0
@@ -341,6 +326,10 @@ jobs:
341326
- name: Build NLua
342327
working-directory: source/NLua
343328
run: dotnet publish -c ${{ env.BUILD_TYPE }} build/net6.0/NLua.net6.0.csproj
329+
330+
- name: Build FNA
331+
working-directory: source/FNA
332+
run: dotnet build -c ${{ env.BUILD_TYPE }} FNA.Core.csproj
344333

345334
- name: Copy artifacts
346335
run: |
@@ -353,6 +342,9 @@ jobs:
353342
354343
cp -r source/NLua/lib/${{ env.BUILD_TYPE }}/net6.0/publish/* all_artifacts
355344
345+
cp source/FNA/bin/${{ env.BUILD_TYPE }}/${{ env.NET_FRAMEWORK }}/FNA.dll all_artifacts
346+
cp source/FNA/bin/${{ env.BUILD_TYPE }}/${{ env.NET_FRAMEWORK }}/FNA.pdb all_artifacts
347+
356348
- name: Upload Artifacts
357349
uses: actions/upload-artifact@v4
358350
with:
@@ -489,8 +481,8 @@ jobs:
489481
pushd ../lib-ext
490482
491483
### Vanilla overrides
492-
cp ../binaries/fnalibs-linux-x86_64/FNA.dll lib-vanilla
493-
cp ../binaries/fnalibs-linux-x86_64/FNA.pdb lib-vanilla
484+
cp ../binaries/managed-libraries/FNA.dll lib-vanilla
485+
cp ../binaries/managed-libraries/FNA.pdb lib-vanilla
494486
495487
# Windows x86
496488
cp ../binaries/fnalibs-windows-i686/FNA3D.dll lib-vanilla
@@ -513,8 +505,8 @@ jobs:
513505
cp ../binaries/fnalibs-linux-x86_64/libtheorafile.so lib-vanilla/lib64
514506
515507
### Everest Libraries
516-
mv ../binaries/fnalibs-linux-x86_64/FNA.dll .
517-
mv ../binaries/fnalibs-linux-x86_64/FNA.pdb .
508+
mv ../binaries/managed-libraries/FNA.dll .
509+
mv ../binaries/managed-libraries/FNA.pdb .
518510
519511
mv ../binaries/managed-libraries/* .
520512

0 commit comments

Comments
 (0)