Tried flutter action
This commit is contained in:
@@ -4,26 +4,7 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-ios:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
wget --show-progress --progress=bar:force:noscroll:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
echo "$(pwd)/flutter/bin" >> $GITEA_PATH
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build IPA
|
||||
run: flutter build ipa --no-codesign
|
||||
|
||||
build-android:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -60,12 +41,18 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
wget --show-progress --progress=bar:force:noscroll:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
echo "$(pwd)/flutter/bin" >> $GITEA_PATH
|
||||
- name: Set up Flutter
|
||||
uses: github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
flutter-version: 3.19.0
|
||||
|
||||
#- name: Install Flutter (wget)
|
||||
# run: |
|
||||
# wget --show-progress --progress=bar:force:noscroll:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
# tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
# git config --global --add safe.directory "$(pwd)/flutter"
|
||||
# echo "$(pwd)/flutter/bin" >> $GITEA_PATH
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
Reference in New Issue
Block a user