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:
|
jobs:
|
||||||
development:
|
development:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/cirruslabs/flutter:3.35.5
|
||||||
timeout-minutes: 360 # 6 hours
|
timeout-minutes: 360 # 6 hours
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -24,15 +25,6 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: recursive
|
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
|
- name: Set up Python and dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
|
|
@ -41,19 +33,6 @@ jobs:
|
||||||
pip3 --version
|
pip3 --version
|
||||||
bash --version || echo "bash check failed"
|
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
|
- name: Install Cursor CLI
|
||||||
run: |
|
run: |
|
||||||
# bash should already be installed in previous step
|
# bash should already be installed in previous step
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ jobs:
|
||||||
deploy-web:
|
deploy-web:
|
||||||
name: Deploy Web App
|
name: Deploy Web App
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/cirruslabs/flutter::3.35.5
|
||||||
needs: deploy-backend
|
needs: deploy-backend
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -68,31 +69,10 @@ jobs:
|
||||||
git config --global http.maxRequestBuffer 100M
|
git config --global http.maxRequestBuffer 100M
|
||||||
git config --global core.compression 0
|
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
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y rsync openssh-client jq git
|
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
|
- name: Setup SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue