mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-24 20:09:30 +00:00
Some checks failed
* Refactor CI workflow and add Linux packaging support; update app title to "Vaani" * Refactor CI workflow to separate setup, testing, and building steps; add Linux AppImage packaging support * use reusable workflow * Make Flutter version input optional in setup-env action and rename step in workflow * Replace setup-env action with reusable flutter-setup workflow; streamline CI configuration and enhance dependency management * Add Flutter setup composite action for streamlined environment configuration * Move repository checkout step to the main workflow for better control and clarity in the CI process * Remove unnecessary shell specification for Flutter dependency setup to simplify action configuration * Add shell specification for Flutter dependency command to enhance cross-platform compatibility * Comment out static analysis step in Flutter test workflow to streamline CI process * Add repository checkout and Flutter environment setup steps to CI workflow * Add installation of Linux dependencies for Flutter test workflow * Remove obsolete Flutter setup and release workflows to streamline CI configuration * Fix formatting in make_config.yaml by ensuring newline at end of file
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
# .github/actions/flutter-setup/action.yml
|
|
name: "Flutter Setup Composite Action"
|
|
description: "Checks out code, sets up Java/Flutter, caches, and runs pub get"
|
|
|
|
# Define inputs for customization (optional, but good practice)
|
|
inputs:
|
|
flutter-channel:
|
|
description: "Flutter channel to use (stable, beta, dev, master)"
|
|
required: false
|
|
default: "stable"
|
|
java-version:
|
|
description: "Java version to set up"
|
|
required: false
|
|
default: "17"
|
|
|
|
runs:
|
|
using: "composite" # Specify this is a composite action
|
|
steps:
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: "temurin"
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
- name: Set up Flutter SDK
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: ${{ inputs.flutter-channel }}
|
|
flutter-version-file: pubspec.yaml
|
|
cache: true # Cache Flutter SDK itself
|
|
|
|
- name: Cache Flutter dependencies
|
|
id: cache-pub
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ env.FLUTTER_HOME }}/.pub-cache
|
|
key: ${{ runner.os }}-flutter-pub-${{ hashFiles('**/pubspec.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-flutter-pub-
|
|
|
|
- name: Get Flutter dependencies
|
|
run: flutter pub get
|
|
# Use shell: bash for potential cross-platform compatibility in complex commands
|
|
shell: bash
|
|
|
|
# Add other common setup steps if needed
|