From 36918ee96f3e8765f425d80e7cfe13ed5efb16bd Mon Sep 17 00:00:00 2001 From: Stephen Jia Date: Mon, 22 Sep 2025 09:43:29 -0400 Subject: [PATCH] [samsung] change docker image for using android ndk Summary: Copy of https://github.com/pytorch/executorch/pull/14105. This PR was created to debug using the samsung AI litecore API key as a Github secret. Note that the key is currently not active. --- .ci/scripts/setup-samsung-linux-deps.sh | 2 +- .github/workflows/pull.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/setup-samsung-linux-deps.sh b/.ci/scripts/setup-samsung-linux-deps.sh index ed704b2bfbd..9107c5d01c3 100644 --- a/.ci/scripts/setup-samsung-linux-deps.sh +++ b/.ci/scripts/setup-samsung-linux-deps.sh @@ -11,7 +11,7 @@ set -ex download_ai_lite_core() { API_BASE="https://soc-developer.semiconductor.samsung.com/api/v1/resource/ai-litecore/download" - API_KEY="kn10SoSY3hkC-9Qny5TqD2mnqVrlupv3krnjLeBt5cY" + API_KEY=$SAMSUNG_AI_LITECORE_KEY VERSION="0.5" OS_NAME="Ubuntu 22.04" diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index d8c551e8982..f372be0e46f 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -900,12 +900,14 @@ jobs: permissions: id-token: write contents: read + secrets: inherit with: runner: linux.2xlarge docker-image: ci-image:executorch-ubuntu-22.04-clang12-android submodules: 'recursive' ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 90 + secrets-env: SAMSUNG_AI_LITECORE_KEY script: | set -ex @@ -917,6 +919,7 @@ jobs: PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "cmake" # Setup Samsung SDK (AI Lite Core) and install enn backend + export SAMSUNG_AI_LITECORE_KEY=$SECRET_SAMSUNG_AI_LITECORE_KEY source .ci/scripts/setup-samsung-linux-deps.sh # Test models serially