f
This commit is contained in:
parent
88cad155e9
commit
f9484d962d
1 changed files with 11 additions and 29 deletions
|
|
@ -24,17 +24,6 @@ jobs:
|
|||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Ensure git repo exists
|
||||
run: |
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "Repository is missing .git — reconstructing git metadata"
|
||||
git init
|
||||
git remote add origin "${{ github.repositoryUrl }}"
|
||||
git fetch --depth 1 origin "${{ github.ref }}"
|
||||
git checkout "${{ github.ref_name }}"
|
||||
fi
|
||||
|
||||
|
||||
- name: Set up Python and dependencies
|
||||
run: |
|
||||
apt-get update -qq
|
||||
|
|
@ -43,25 +32,18 @@ jobs:
|
|||
pip3 --version
|
||||
bash --version || echo "bash check failed"
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: https://github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.35.5'
|
||||
git-source: https://github.com/flutter/flutter.git
|
||||
fetch-depth: 0
|
||||
- name: Install Flutter 3.35.5
|
||||
run: |
|
||||
if [ ! -d /opt/flutter/bin ]; then
|
||||
echo "Flutter not found, cloning..."
|
||||
git clone --branch 3.35.5 --depth 1 https://github.com/flutter/flutter.git /opt/flutter
|
||||
else
|
||||
echo "Flutter already present in /opt/flutter"
|
||||
fi
|
||||
|
||||
# - name: Install Flutter 3.35.5
|
||||
# run: |
|
||||
# if [ ! -d /opt/flutter/bin ]; then
|
||||
# echo "Flutter not found, cloning..."
|
||||
# git clone --branch 3.35.5 --depth 1 https://github.com/flutter/flutter.git /opt/flutter
|
||||
# else
|
||||
# echo "Flutter already present in /opt/flutter"
|
||||
# fi
|
||||
|
||||
# echo "FLUTTER_ROOT=/opt/flutter" >> "$GITHUB_ENV"
|
||||
# echo "/opt/flutter/bin" >> "$GITHUB_PATH"
|
||||
# /opt/flutter/bin/flutter --version
|
||||
echo "FLUTTER_ROOT=/opt/flutter" >> "$GITHUB_ENV"
|
||||
echo "/opt/flutter/bin" >> "$GITHUB_PATH"
|
||||
/opt/flutter/bin/flutter --version
|
||||
|
||||
- name: Install Cursor CLI
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue