CI: replace checkout action with direct git clone (no node in container)
Some checks failed
Build & Release APK / build (push) Failing after 27s
Some checks failed
Build & Release APK / build (push) Failing after 27s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,11 +10,16 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: eclipse-temurin:21-jdk
|
image: eclipse-temurin:21-jdk
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
# actions/checkout needs node, which this container lacks — clone directly
|
||||||
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq git unzip curl >/dev/null
|
||||||
|
git init -q .
|
||||||
|
git fetch -q --depth 1 "${{ github.server_url }}/${{ github.repository }}.git" "${{ github.sha }}"
|
||||||
|
git checkout -q FETCH_HEAD
|
||||||
|
|
||||||
- name: Install Android SDK
|
- name: Install Android SDK
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq && apt-get install -y -qq unzip curl >/dev/null
|
|
||||||
mkdir -p "$HOME/android-sdk/cmdline-tools"
|
mkdir -p "$HOME/android-sdk/cmdline-tools"
|
||||||
curl -sLo /tmp/ct.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
curl -sLo /tmp/ct.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||||
unzip -q /tmp/ct.zip -d /tmp
|
unzip -q /tmp/ct.zip -d /tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user