mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-03-28 06:10:09 -06:00
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (appimage-wayland) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-build / android (googleplay) (push) Waiting to run
citra-build / android (vanilla) (push) Waiting to run
citra-build / docker (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-libretro / android (push) Waiting to run
citra-libretro / linux (push) Waiting to run
citra-libretro / windows (push) Waiting to run
citra-libretro / macos (arm64) (push) Waiting to run
citra-libretro / macos (x86_64) (push) Waiting to run
citra-libretro / ios (push) Waiting to run
citra-libretro / tvos (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
* libretro core * Bringing citra libretro implementation over * libretro: hook up vulkan renderer * libretro: github actions * libretro: gyro * libretro: core options v2 * libretro: on ios turn off shader jit if unavailable * moltenvk 1.3.0 introduces 8-bit indexes but allocates 16-bit for metal; this ends up allocating stream buffer * 2 = 132MiB. Instead, just use 16-bit indexes. (This will be necessary for standalone when bumping moltenvk version.) * libretro core: address review feedback * libretro: microphone support * cmake: Add ENABLE_ROOM_STANDALONE to list of incompatible libretro flags * libretro: proper initial geometry * libretro: fix software renderer * libretro: address review feedback * .github/libretro.yml: Pin macOS runners at macOS 26 * ci: Remove explicit selection of Xcode 16.0 * .github/libretro.yml: remove unnecessary windows builder apt commands * .github/libretro.yml: bump min macos version to 11.0 * ci: Re-enable CI jobs for all libretro cores This is under the condition that we don't introduce build cache for these builds --------- Co-authored-by: OpenSauce04 <opensauce04@gmail.com> Co-authored-by: PabloMK7 <hackyglitch2@gmail.com>
167 lines
5.9 KiB
YAML
167 lines
5.9 KiB
YAML
name: citra-libretro
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
tags: [ "*" ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CORE_ARGS: -DENABLE_LIBRETRO=ON
|
|
|
|
jobs:
|
|
android:
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
OS: android
|
|
TARGET: arm64-v8a
|
|
API_LEVEL: 21
|
|
ANDROID_NDK_VERSION: 26.2.11394342
|
|
ANDROID_ABI: arm64-v8a
|
|
BUILD_DIR: build/android-arm64-v8a
|
|
EXTRA_PATH: bin/Release
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Set tag name
|
|
run: |
|
|
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
|
|
echo "GIT_TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
|
|
fi
|
|
echo $GIT_TAG_NAME
|
|
- name: Update Android SDK CMake version
|
|
run: |
|
|
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;$ANDROID_NDK_VERSION"
|
|
echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "cmake;3.30.3"
|
|
- name: Build
|
|
run: |
|
|
export NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/$ANDROID_NDK_VERSION
|
|
${ANDROID_SDK_ROOT}/cmake/3.30.3/bin/cmake $CORE_ARGS -DANDROID_PLATFORM=android-$API_LEVEL -DCMAKE_TOOLCHAIN_FILE=$NDK_ROOT/build/cmake/android.toolchain.cmake -DANDROID_STL=c++_static -DANDROID_ABI=$ANDROID_ABI . -B $BUILD_DIR
|
|
${ANDROID_SDK_ROOT}/cmake/3.30.3/bin/cmake --build $BUILD_DIR --target azahar_libretro --config Release -j $(nproc)
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro_android.so
|
|
linux:
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
OS: linux
|
|
TARGET: x86_64
|
|
BUILD_DIR: build/linux-x86_64
|
|
EXTRA_PATH: bin/Release
|
|
EXTRA_CORE_ARGS: -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DENABLE_LTO=OFF
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Build
|
|
run: |
|
|
cmake $CORE_ARGS $EXTRA_CORE_ARGS . -B $BUILD_DIR
|
|
cmake --build $BUILD_DIR --target azahar_libretro --config Release -j $(nproc)
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro.so
|
|
windows:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
OS: windows
|
|
TARGET: x86_64
|
|
BUILD_DIR: build/windows-x86_64
|
|
EXTRA_CORE_ARGS: -DENABLE_LTO=OFF -G Ninja
|
|
CMAKE: x86_64-w64-mingw32.static-cmake
|
|
IMAGE: git.libretro.com:5050/libretro-infrastructure/libretro-build-mxe-win-cross-cores:mingw12
|
|
EXTRA_PATH: bin/Release
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Build in cross-container
|
|
run: |
|
|
docker pull $IMAGE
|
|
docker run --rm --user root \
|
|
-v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" \
|
|
-w "${GITHUB_WORKSPACE}" \
|
|
$IMAGE \
|
|
bash -lc "\
|
|
${CMAKE} $CORE_ARGS $EXTRA_CORE_ARGS . -B $BUILD_DIR && \
|
|
${CMAKE} --build $BUILD_DIR --target azahar_libretro --config Release -j $(nproc)"
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro.dll
|
|
macos:
|
|
runs-on: macos-26
|
|
strategy:
|
|
matrix:
|
|
target: ["x86_64", "arm64"]
|
|
env:
|
|
OS: macos
|
|
TARGET: ${{ matrix.target }}
|
|
MACOSX_DEPLOYMENT_TARGET: 11.0
|
|
BUILD_DIR: build/osx-${{ matrix.target }}
|
|
EXTRA_PATH: bin/Release
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Install tools
|
|
run: brew install spirv-tools
|
|
- name: Build
|
|
run: |
|
|
cmake $CORE_ARGS -DCMAKE_OSX_ARCHITECTURES=$TARGET . -B $BUILD_DIR
|
|
cmake --build $BUILD_DIR --target azahar_libretro --config Release
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro.dylib
|
|
ios:
|
|
runs-on: macos-26
|
|
env:
|
|
OS: ios
|
|
TARGET: arm64
|
|
BUILD_DIR: build/ios-arm64
|
|
EXTRA_PATH: bin/Release
|
|
EXTRA_CORE_ARGS: -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_C_FLAGS=-DIOS -DCMAKE_CXX_FLAGS=-DIOS -DIOS=ON -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 -DCITRA_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_OSX_ARCHITECTURES=arm64 -DENABLE_OPT=OFF
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Build
|
|
run: |
|
|
cmake $CORE_ARGS $EXTRA_CORE_ARGS . -B $BUILD_DIR
|
|
cmake --build $BUILD_DIR --target azahar_libretro --config Release
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro.dylib
|
|
tvos:
|
|
runs-on: macos-26
|
|
env:
|
|
OS: tvos
|
|
TARGET: arm64
|
|
BUILD_DIR: build/tvos-arm64
|
|
EXTRA_PATH: bin/Release
|
|
EXTRA_CORE_ARGS: -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_C_FLAGS=-DIOS -DCMAKE_CXX_FLAGS=-DIOS -DIOS=ON -DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 -DCITRA_USE_PRECOMPILED_HEADERS=OFF -DCMAKE_OSX_SYSROOT=appletvos -DCMAKE_OSX_ARCHITECTURES=arm64 -DENABLE_OPT=OFF
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Build
|
|
run: |
|
|
cmake $CORE_ARGS $EXTRA_CORE_ARGS . -B $BUILD_DIR
|
|
cmake --build $BUILD_DIR --target azahar_libretro --config Release
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
|
path: ${{ env.BUILD_DIR }}/${{ env.EXTRA_PATH }}/azahar_libretro.dylib
|