Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Android

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
android_abi: [arm64-v8a, armeabi-v7a, x86, x86_64]
android_stl: [c++_shared, c++_static]

steps:
- uses: actions/checkout@v6

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=${{ matrix.android_abi }} -DANDROID_STL=${{ matrix.android_stl }}

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
6 changes: 4 additions & 2 deletions src/libchdr_chd.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
# ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L
# endif
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
# ifndef __ANDROID__
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
# endif
# endif
#endif

Expand Down