Skip to content

Commit 7159e03

Browse files
committed
Merge branch 'main' into mm-and-nlua
2 parents ef8c5cb + 4004fb2 commit 7159e03

5 files changed

Lines changed: 1125 additions & 15 deletions

File tree

.github/workflows/build-libs.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- .github/workflows/**
77
- source/**
88
- patches/**
9+
workflow_dispatch:
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.ref }}
@@ -139,23 +140,25 @@ jobs:
139140
if: ${{ matrix.platform == 'linux' }}
140141
run: echo "SDL2_LIB=${{ env.SDL2_DIR }}/lib/libSDL2-2.0.so" >> $GITHUB_ENV
141142

142-
# FNA3D + FAudio
143-
- name: Update FNA3D + FAudio CMake version (Windows)
144-
if: ${{ matrix.platform == 'windows' }}
145-
run: |
146-
# Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
147-
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' source/FNA/lib/FNA3D/CMakeLists.txt
148-
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' source/FNA/lib/FAudio/CMakeLists.txt
149-
150143
# FNA3D
151-
- name: Patch FNA3D
144+
- name: Patch FNA3D + MojoShader
152145
working-directory: source/FNA/lib/FNA3D
153146
run: |
154147
# Required for applying patches
155-
git config user.name github-actions
156-
git config user.email github-actions@github.com
148+
git config --global user.name github-actions
149+
git config --global user.email github-actions@github.com
157150
158151
git am ../../../../patches/FNA3D_ExclusiveFullscreen.patch
152+
git am ../../../../patches/FNA3D_Headless.patch
153+
154+
if [ "x${{ runner.os }}" = "xWindows" ]; then
155+
# Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
156+
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
157+
fi
158+
159+
cd MojoShader
160+
git am ../../../../../patches/MojoShader_Headless.patch
161+
cd ..
159162
160163
- name: Configure FNA3D
161164
working-directory: source/FNA/lib/FNA3D
@@ -171,6 +174,14 @@ jobs:
171174
run: cmake --build build --config ${{ env.BUILD_TYPE }} --verbose --parallel
172175

173176
# FAudio
177+
- name: Patch FAudio
178+
working-directory: source/FNA/lib/FAudio
179+
run: |
180+
if [ "x${{ runner.os }}" = "xWindows" ]; then
181+
# Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
182+
sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
183+
fi
184+
174185
- name: Configure FAudio
175186
working-directory: source/FNA/lib/FAudio
176187
run: cmake -B build -G Ninja \

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Everest-libs
2-
## What is it for?
3-
This repository contains the latest libraries needed for Everest in answer to [this issue](https://github.com/EverestAPI/Everest/issues/720). In short: Everest bundled libraries are mismatched and could have been built anywhere, the purpose of this repository is to guarantee the provenance of the libs using Github Actions.
1+
# Everest Libraries
2+
3+
Provides third-party libraries used by Everest, using trusted sources such as GitHub Actions or offical downloads to obtain them.
4+
Some libraries have patches applied to them, to account for Everest-specific needs.
45

56
## Libraries Versions
67

@@ -9,7 +10,7 @@ These libraries are open source and are built in CI.
910

1011
- SDL2 `2.28.5`
1112
- FNA `24.01`
12-
- FNA3D `24.01`
13+
- FNA3D `24.01` with patches
1314
- FAudio `24.01`
1415
- Theorafile [48d74af](https://github.com/FNA-XNA/Theorafile/tree/48d74afcbf838fe95ca56cec142efae07bb56f65)
1516
- MoltenVK `1.2.11`

patches/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)