Fix: Use kankanjiao CI/CD style environment setup with RUNNER_TOOL_CACHE
Build Debug / Build Android Debug APK (push) Failing after 1m9s
Build UUVPN / Build Android APK (push) Failing after 1m9s
Build UUVPN / Cleanup old artifacts (push) Failing after 0s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
Build Debug / Build Android Debug APK (push) Failing after 1m9s
Build UUVPN / Build Android APK (push) Failing after 1m9s
Build UUVPN / Cleanup old artifacts (push) Failing after 0s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
This commit is contained in:
@@ -15,13 +15,35 @@ jobs:
|
|||||||
build-android-debug:
|
build-android-debug:
|
||||||
name: Build Android Debug APK
|
name: Build Android Debug APK
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
export PATH="/toolcache/bin:$PATH"
|
||||||
apt-get install -y openjdk-17-jdk git-lfs golang-go
|
if ! command -v node &> /dev/null; then
|
||||||
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
else
|
||||||
|
curl -fsSL https://nodejs.org/dist/v20.0.0/node-v20.0.0-linux-x64.tar.xz | tar -xJ -C /tmp
|
||||||
|
mkdir -p /toolcache
|
||||||
|
cp -r /tmp/node-v20.0.0-linux-x64/{bin,lib,share} /toolcache/
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
node --version
|
||||||
|
|
||||||
|
- name: Install Git LFS
|
||||||
|
run: |
|
||||||
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache git-lfs
|
||||||
|
elif command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y git-lfs
|
||||||
|
else
|
||||||
|
curl -sL https://github.com/git-lfs/git-lfs/releases/download/v3.5.1/git-lfs-linux-amd64-v3.5.1.tar.gz | tar xz -C /tmp
|
||||||
|
mv /tmp/git-lfs-3.5.1/git-lfs /toolcache/bin/
|
||||||
|
fi
|
||||||
|
git lfs install
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -34,6 +56,26 @@ jobs:
|
|||||||
git lfs install
|
git lfs install
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
|
- name: Install Java 17
|
||||||
|
run: |
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y openjdk-17-jdk
|
||||||
|
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
curl -sL https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz | tar xz -C /toolcache
|
||||||
|
echo "JAVA_HOME=/toolcache/jdk-17.0.9+9" >> $GITHUB_ENV
|
||||||
|
echo "/toolcache/jdk-17.0.9+9/bin" >> $GITHUB_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Install Go 1.23
|
||||||
|
run: |
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y golang-go
|
||||||
|
else
|
||||||
|
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
||||||
|
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
|
|
||||||
|
|||||||
@@ -49,13 +49,35 @@ jobs:
|
|||||||
name: Build Android APK
|
name: Build Android APK
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
if: ${{ github.event.inputs.build_android != 'false' }}
|
if: ${{ github.event.inputs.build_android != 'false' }}
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
export PATH="/toolcache/bin:$PATH"
|
||||||
apt-get install -y openjdk-17-jdk git-lfs golang-go
|
if ! command -v node &> /dev/null; then
|
||||||
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
else
|
||||||
|
curl -fsSL https://nodejs.org/dist/v20.0.0/node-v20.0.0-linux-x64.tar.xz | tar -xJ -C /tmp
|
||||||
|
mkdir -p /toolcache
|
||||||
|
cp -r /tmp/node-v20.0.0-linux-x64/{bin,lib,share} /toolcache/
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
node --version
|
||||||
|
|
||||||
|
- name: Install Git LFS
|
||||||
|
run: |
|
||||||
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache git-lfs
|
||||||
|
elif command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y git-lfs
|
||||||
|
else
|
||||||
|
curl -sL https://github.com/git-lfs/git-lfs/releases/download/v3.5.1/git-lfs-linux-amd64-v3.5.1.tar.gz | tar xz -C /tmp
|
||||||
|
mv /tmp/git-lfs-3.5.1/git-lfs /toolcache/bin/
|
||||||
|
fi
|
||||||
|
git lfs install
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -68,6 +90,26 @@ jobs:
|
|||||||
git lfs install
|
git lfs install
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
|
- name: Install Java 17
|
||||||
|
run: |
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y openjdk-17-jdk
|
||||||
|
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
curl -sL https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz | tar xz -C /toolcache
|
||||||
|
echo "JAVA_HOME=/toolcache/jdk-17.0.9+9" >> $GITHUB_ENV
|
||||||
|
echo "/toolcache/jdk-17.0.9+9/bin" >> $GITHUB_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Install Go 1.23
|
||||||
|
run: |
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y golang-go
|
||||||
|
else
|
||||||
|
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
||||||
|
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
app-profile.apk
|
app-profile.apk
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Exclude kankanjiao project
|
||||||
|
/kankanjiao/
|
||||||
|
|
||||||
# Do not remove or rename entries in this file, only add new ones
|
# Do not remove or rename entries in this file, only add new ones
|
||||||
# See https://github.com/flutter/flutter/issues/128635 for more context.
|
# See https://github.com/flutter/flutter/issues/128635 for more context.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user