From 6945bdaff196cf7e8dae818035a917ba1dcd1192 Mon Sep 17 00:00:00 2001 From: Emre Kultursay Date: Thu, 5 Mar 2026 11:53:07 -0800 Subject: [PATCH] Add skills files for building on Android, and building and testing on Linux --- .agents/skills/android/SKILL.md | 31 ++++++++++++++++++++++++++++ .agents/skills/linux/SKILL.md | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .agents/skills/android/SKILL.md create mode 100644 .agents/skills/linux/SKILL.md diff --git a/.agents/skills/android/SKILL.md b/.agents/skills/android/SKILL.md new file mode 100644 index 0000000000..0c9cd530db --- /dev/null +++ b/.agents/skills/android/SKILL.md @@ -0,0 +1,31 @@ +--- +name: Build for Android +description: Instructions for building for Android +--- + + +# Build instructions + + +To build the project for Android, run the following command from the root of the repository: + + +``` +scripts/android.py +``` + + +# Requirements for running the build script + +1. Make sure the `ANDROID_HOME` environment variable is set. If it's not set, + then set it to the default location based on the current operating system. + + +2. Make sure the `ANDROID_NDK_HOME` environment variable is set. Verify that it's set to NDK version 29 or newer. If it's not set, use the latest NDK version from the $ANDROID_HOME location, but make sure it satisfies the minimum NDK version required. + + + +3. Use CMake and Ninja from the Android SDK. Make sure they are available in $PATH. Use the `bin/` subdirectory of the CMake package from Android SDK. Make sure the CMake package you are using is version 3.22.1 or newer. + +THe CMake package inside Android SDK also contains a `ninja` binary next to the `cmake` binary, so you don't need to do anything other than adding that directory to PATH. + diff --git a/.agents/skills/linux/SKILL.md b/.agents/skills/linux/SKILL.md new file mode 100644 index 0000000000..f7a8e1dbdb --- /dev/null +++ b/.agents/skills/linux/SKILL.md @@ -0,0 +1,36 @@ +--- +name: Build and test for Linux +description: Instructions for building and testing for Android +--- + +# Prerequisites for everything + +You must be on a Linux host. If you are on a different host, you cannot build for Linux. Check the current host OS. + +If the current host is not Linux, do not proceed. Tell the user that you cannot build for Linux from the current host OS. + + + +# Build and test instructions + + +To build the project and run the tests, run the following command from the root of the repository: + +``` +./scripts/github_ci_linux.py +``` + + +# Requirements for running the builds + +1. Use CMake and Ninja from the Android SDK. Make sure they are available in $PATH. Use the `bin/` subdirectory of the CMake package from Android SDK. Make sure the CMake package you are using is version 3.22.1 or newer. + +The CMake package inside Android SDK also contains a `ninja` binary next to the `cmake` binary, so you don't need to do anything other than adding that directory to PATH. + +You will find Android SDK using the ANDROID_HOME environment variable. If it's not set, set it to the default location for the current operating system. + + + + + +