f
This commit is contained in:
parent
88cad155e9
commit
f9484d962d
1 changed files with 11 additions and 29 deletions
|
|
@ -23,17 +23,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: recursive
|
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
|
- name: Set up Python and dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -43,25 +32,18 @@ jobs:
|
||||||
pip3 --version
|
pip3 --version
|
||||||
bash --version || echo "bash check failed"
|
bash --version || echo "bash check failed"
|
||||||
|
|
||||||
- name: Setup Flutter
|
- name: Install Flutter 3.35.5
|
||||||
uses: https://github.com/subosito/flutter-action@v2
|
run: |
|
||||||
with:
|
if [ ! -d /opt/flutter/bin ]; then
|
||||||
flutter-version: '3.35.5'
|
echo "Flutter not found, cloning..."
|
||||||
git-source: https://github.com/flutter/flutter.git
|
git clone --branch 3.35.5 --depth 1 https://github.com/flutter/flutter.git /opt/flutter
|
||||||
fetch-depth: 0
|
else
|
||||||
|
echo "Flutter already present in /opt/flutter"
|
||||||
|
fi
|
||||||
|
|
||||||
# - name: Install Flutter 3.35.5
|
echo "FLUTTER_ROOT=/opt/flutter" >> "$GITHUB_ENV"
|
||||||
# run: |
|
echo "/opt/flutter/bin" >> "$GITHUB_PATH"
|
||||||
# if [ ! -d /opt/flutter/bin ]; then
|
/opt/flutter/bin/flutter --version
|
||||||
# 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
|
|
||||||
|
|
||||||
- name: Install Cursor CLI
|
- name: Install Cursor CLI
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue