update workflows
Some checks failed
Flutter Release / get-version (push) Successful in 8s
Flutter Release / build-android (push) Failing after 1m59s
Flutter Release / build-windows (push) Failing after 10s
Flutter Release / create-release (push) Has been skipped

This commit is contained in:
2025-12-14 22:02:24 -05:00
parent 86040cdd4f
commit 57ccaad08a
4 changed files with 5 additions and 94 deletions

View File

@@ -1,89 +0,0 @@
name: Flutter Dev Build
on:
workflow_dispatch:
jobs:
build-flutter-dev:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
channel: 'stable'
- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
- name: Create dev .env file
working-directory: flutter_app
run: |
echo "WS_URL=ws://localhost:3001" > .env
echo "API_URL=http://localhost:3001" >> .env
- name: Install dependencies
working-directory: flutter_app
run: flutter pub get
- name: Run Flutter doctor
run: flutter doctor -v
- name: Build Windows debug
working-directory: flutter_app
run: flutter build windows --debug
- name: List build directory
working-directory: flutter_app
run: |
Write-Host "=== Build Directory Structure ==="
Get-ChildItem -Recurse build\windows\x64\runner\Debug | Select-Object FullName, Length
- name: Upload debug build
uses: actions/upload-artifact@v4
with:
name: rmtPocketWatcher-Windows-Debug
path: flutter_app/build/windows/x64/runner/Debug/
retention-days: 7
build-android-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
channel: 'stable'
- name: Create dev .env file
working-directory: flutter_app
run: |
echo "WS_URL=ws://10.0.2.2:3001" > .env
echo "API_URL=http://10.0.2.2:3001" >> .env
- name: Install dependencies
working-directory: flutter_app
run: flutter pub get
- name: Build Android debug APK
working-directory: flutter_app
run: flutter build apk --debug
- name: Upload debug APK
uses: actions/upload-artifact@v4
with:
name: rmtPocketWatcher-Android-Debug
path: flutter_app/build/app/outputs/flutter-apk/app-debug.apk
retention-days: 7

View File

@@ -26,7 +26,7 @@ jobs:
echo "Version: $VERSION" echo "Version: $VERSION"
build-windows: build-windows:
runs-on: windows-latest runs-on: windows
needs: get-version needs: get-version
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -35,7 +35,7 @@ jobs:
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
flutter-version: '3.24.0' flutter-version: '3.24.5'
channel: 'stable' channel: 'stable'
- name: Enable Windows desktop - name: Enable Windows desktop
@@ -86,7 +86,7 @@ jobs:
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
flutter-version: '3.24.0' flutter-version: '3.24.5'
channel: 'stable' channel: 'stable'
- name: Create production .env file - name: Create production .env file

View File

@@ -654,5 +654,5 @@ packages:
source: hosted source: hosted
version: "6.6.1" version: "6.6.1"
sdks: sdks:
dart: ">=3.10.3 <4.0.0" dart: ">=3.9.0 <4.0.0"
flutter: ">=3.35.0" flutter: ">=3.35.0"

View File

@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.10.3 sdk: '>=3.5.0 <4.0.0'
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions