mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 09:35:42 +00:00
Delete .github/workflows/buillld.yml
This commit is contained in:
parent
ea4218840c
commit
dbd5b42b86
1 changed files with 0 additions and 95 deletions
95
.github/workflows/buillld.yml
vendored
95
.github/workflows/buillld.yml
vendored
|
|
@ -1,95 +0,0 @@
|
|||
name: Build Android APK
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build_type:
|
||||
description: 'Build type'
|
||||
required: true
|
||||
default: 'release'
|
||||
type: choice
|
||||
options:
|
||||
- release
|
||||
- debug
|
||||
commit_sha:
|
||||
description: 'Commit SHA to build from (leave empty for latest)'
|
||||
required: false
|
||||
type: string
|
||||
notes:
|
||||
description: 'Notes (optional)'
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.commit_sha || github.sha }}
|
||||
|
||||
- name: Print build info
|
||||
run: |
|
||||
echo "Building commit: $(git rev-parse HEAD)"
|
||||
echo "Commit message: $(git log -1 --pretty=%B)"
|
||||
echo "Build type: ${{ inputs.build_type }}"
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Setup Java 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
|
||||
- name: Install NDK r29
|
||||
run: |
|
||||
echo "y" | sdkmanager "ndk;29.0.14206865"
|
||||
|
||||
- name: Create .env file (debug defaults)
|
||||
run: |
|
||||
cp .env.example .env
|
||||
sed -i 's/your_[^ ]*/debug_placeholder/g' .env
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Apply patches
|
||||
run: npx patch-package
|
||||
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x android/gradlew
|
||||
|
||||
- name: Build ${{ inputs.build_type }} APK
|
||||
env:
|
||||
NODE_ENV: production
|
||||
SENTRY_DISABLE_AUTO_UPLOAD: true
|
||||
run: |
|
||||
cd android
|
||||
./gradlew clean
|
||||
if [ "${{ inputs.build_type }}" = "release" ]; then
|
||||
./gradlew assembleRelease --no-daemon --stacktrace --rerun-tasks
|
||||
else
|
||||
./gradlew assembleDebug --no-daemon --stacktrace --rerun-tasks
|
||||
fi
|
||||
|
||||
- name: List APK outputs
|
||||
run: find android/app/build/outputs/apk -name "*.apk" | sort
|
||||
|
||||
- name: Upload APK as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: nuvio-${{ inputs.build_type }}-${{ inputs.commit_sha != '' && inputs.commit_sha || github.sha }}-run${{ github.run_number }}
|
||||
path: android/app/build/outputs/apk/${{ inputs.build_type }}/*.apk
|
||||
retention-days: 30
|
||||
|
||||
Loading…
Reference in a new issue