flutter
This commit is contained in:
parent
86d7cad009
commit
7c6ca4bd71
2 changed files with 2 additions and 43 deletions
|
|
@ -15,6 +15,7 @@ on:
|
|||
jobs:
|
||||
development:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/cirruslabs/flutter:3.35.5
|
||||
timeout-minutes: 360 # 6 hours
|
||||
|
||||
steps:
|
||||
|
|
@ -24,15 +25,6 @@ jobs:
|
|||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Create Swap File
|
||||
run: |
|
||||
fallocate -l 2G /swapfile || dd if=/dev/zero of=/swapfile bs=1M count=2048
|
||||
chmod 600 /swapfile
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
swapon --show
|
||||
|
||||
|
||||
- name: Set up Python and dependencies
|
||||
run: |
|
||||
apt-get update -qq
|
||||
|
|
@ -40,19 +32,6 @@ jobs:
|
|||
python3 --version
|
||||
pip3 --version
|
||||
bash --version || echo "bash check failed"
|
||||
|
||||
- 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
|
||||
|
||||
- name: Install Cursor CLI
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ jobs:
|
|||
deploy-web:
|
||||
name: Deploy Web App
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/cirruslabs/flutter::3.35.5
|
||||
needs: deploy-backend
|
||||
if: always()
|
||||
steps:
|
||||
|
|
@ -68,30 +69,9 @@ jobs:
|
|||
git config --global http.maxRequestBuffer 100M
|
||||
git config --global core.compression 0
|
||||
|
||||
- name: Create Swap File
|
||||
run: |
|
||||
fallocate -l 2G /swapfile || dd if=/dev/zero of=/swapfile bs=1M count=2048
|
||||
chmod 600 /swapfile
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
swapon --show
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
apt-get update && apt-get install -y rsync openssh-client jq git
|
||||
|
||||
- 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
|
||||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue