mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-11-07 09:26:09 -10:00
- `fmt::format` with literal format strings -> `std::format`. - `fmt::format(fmt::runtime(...))` -> `FormatRuntime` in the new `utils/format.hpp`, a std::vformat wrapper that is also safe under the P2905 lvalue requirement of `std::make_format_args`. - `fmt::dynamic_format_arg_store` (Lua logging) -> a small hand-rolled per-field formatter over `std::variant`, returning `std::expected`. - `fmt::format_int` -> `std::to_chars`. - `fmt::join` -> manual joins at the two call sites. - SDL_audiolib: new patch that rewrites aulib_log.h to use std::format and drops the fmt dependency from its CMakeLists. - The `-static-libstdc++` guard now keys off `DEVILUTIONX_STATIC_SDL_AUDIOLIB` instead of `DEVILUTIONX_STATIC_LIBFMT`. - libfmt removed from CMake, vcpkg, Brewfile, CI workflows, Dockerfiles, packaging scripts, UWP project, and docs. - macOS bumped to 13.3+, iOS to 16.3+ (required for `<format>`) - Amiga m68k: provide `__cmpdf2`, which is missing from the hard-float libgcc multilib but referenced via libstdc++'s long double paths. Co-Authored-By: Claude Fable 5 <[email protected]>
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
name: Android
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
- 'docs/**'
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
paths-ignore:
|
|
- '*.md'
|
|
- 'docs/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install gettext
|
|
run: sudo apt-get update && sudo apt-get install -y gettext
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: set up JDK 17
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Install CMake
|
|
run: |
|
|
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "cmake;3.31.0"
|
|
|
|
- name: Cache CMake build folder
|
|
uses: actions/cache@v6
|
|
with:
|
|
path: android-project/app/.cxx
|
|
key: ${{ github.workflow }}-v6-${{ github.sha }}
|
|
restore-keys: ${{ github.workflow }}-v6-
|
|
|
|
- name: Build
|
|
working-directory: ${{github.workspace}}
|
|
shell: bash
|
|
run: cd android-project && ./gradlew assembleDebug
|
|
|
|
- name: Upload-Package
|
|
if: ${{ !env.ACT }}
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: devilutionx-debug.apk
|
|
path: android-project/app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
- name: Clean up artifacts
|
|
run: rm -rf android-project/app/build/outputs
|