fix: 测试ci
Some checks failed
Flutter CI - Build iOS & Android / Build Flutter App (push) Failing after 2m53s

This commit is contained in:
liyi 2025-09-22 18:25:50 +08:00
parent 73548e45b6
commit 01d60d2d49

View File

@ -1,19 +1,44 @@
name: Gitea Actions Demo name: Flutter CI - Build iOS & Android
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on:
push:
branches:
- develop_sky
jobs: jobs:
Explore-Gitea-Actions: build:
name: Build Flutter App
runs-on: sky runs-on: sky
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - name: Checkout Code
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: Setup Flutter
- name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} flutter --version
- run: echo "🍏 This job's status is ${{ job.status }}." flutter pub get
- name: Run Tests
run: flutter test
- name: Analyze Code
run: flutter analyze
- name: Build iOS IPA
run: flutter build ipa --release --export-method ad-hoc
- name: Build Android APK
run: flutter build apk --release
- name: Build Android AAB
run: flutter build appbundle --release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: flutter-builds
path: |
build/app/outputs/flutter-apk/
build/app/outputs/bundle/
build/ios/ipa/