Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f807c4c
HOTFIX Build vodozemac on runner
tddang-linagora Oct 15, 2025
3c25eeb
HOTFIX Build vodozemac web
tddang-linagora Oct 15, 2025
bd069c8
fixup! HOTFIX Build vodozemac web
tddang-linagora Oct 15, 2025
9deffa6
fixup! HOTFIX Build vodozemac web
tddang-linagora Oct 15, 2025
13e3269
fixup! HOTFIX Build vodozemac web
tddang-linagora Oct 15, 2025
8df7062
fixup! HOTFIX Build vodozemac web
tddang-linagora Oct 15, 2025
cf52cd7
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
199ad19
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
97e4e5d
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
67fdffd
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
175cc8c
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
015fe08
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
7ae368c
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
a459953
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
f60bda9
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
09ac382
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
03e30d3
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
42a6685
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
afaf7cb
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
ef16d2f
fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
a2a5277
fixup! fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
c90c2d4
fixup! fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
d2db785
fixup! fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
737e3f6
fixup! fixup! fixup! HOTFIX Build vodozemac web
hoangdat Oct 16, 2025
84570ef
fixup! fixup! fixup! fixup! HOTFIX Build vodozemac web
nqhhdev Oct 16, 2025
a007082
fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozemac web
nqhhdev Oct 16, 2025
4220e47
fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozemac web
nqhhdev Oct 16, 2025
60351f5
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
c727139
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
a8407e0
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
a4e2863
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
82cfaa3
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
db5058e
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build …
hoangdat Oct 17, 2025
38b690f
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build …
hoangdat Oct 17, 2025
16be1cc
fixup! fixup! fixup! fixup! fixup! fixup! fixup! HOTFIX Build vodozem…
hoangdat Oct 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Build outputs and caches (HUGE - often 5-15GB)
build/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/

# Platform-specific build outputs (several GB each)
android/build/
android/.gradle/
android/app/build/
ios/build/
ios/.symlinks/
ios/Pods/
ios/Flutter/Flutter.framework
ios/Flutter/Flutter.podspec
linux/build/
macos/build/
windows/build/
winuwp/build/

# Git (can be several GB)
.git/
.gitignore
.gitattributes
.gitmodules

# GitHub workflows and configs (keep only in repo)
.github/

# Flutter Version Manager
.fvm/

# IDE and editor files
.idea/
.vscode/
*.swp
*.swo
*~
.DS_Store
*.iml

# Generated files
generated/
*.g.dart.backup

# Testing and coverage
coverage/
test_driver/
integration_test/
.test_coverage.dart

# Documentation
docs/
README.md
CHANGELOG.md
LICENSE
PRIVACY.md
TRANSLATORS_GUIDE.md
CONTRIBUTING.md

# CI/CD configs (not needed in build)
.gitlab-ci.yml
.envrc
devenv.lock
devenv.nix
devenv.yaml

# AppImage build
appimage/

# FDroid
fdroid/

# Fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/
fastlane/test_output/
fastlane/Gemfile.lock

# Temporary files and caches
*.tmp
*.temp
*.log
.vodozemac

# Test Dockerfiles
Dockerfile.test-dart

# Node modules (if any)
node_modules/
npm-debug.log
yarn-error.log

# OS specific
Thumbs.db
Desktop.ini

# Backup files
*.bak
*.backup
*~

# Don't ignore these - they ARE needed:
# !lib/
# !web/
# !assets/
# !pubspec.yaml
# !pubspec.lock
# !analysis_options.yaml
# !l10n.yaml
# !scripts/
# !server/
# !configurations/
# !android/ (excluding build folder above)
# !ios/ (excluding build folder above)
# !linux/
# !macos/
# !windows/
60 changes: 0 additions & 60 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,63 +84,3 @@ jobs:
path: |
twake-on-matrix-debug.apk
Runner.ipa

build_debug_desktop:
name: Build debug version for desktops
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- os: macos
runner: macos-latest
- os: windows
runner: windows-latest
- os: linux
runner: ubuntu-latest
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}"

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Setup
run: |
ssh-keyscan github.com >> ~/.ssh/known_hosts
flutter pub global activate flutter_distributor
shell: bash

- name: Setup Fastlane (macOS only)
uses: ruby/setup-ruby@v1
if: matrix.os == 'macos'
with:
ruby-version: ruby
bundler-cache: true
working-directory: ${{ matrix.os }}

- name: Build
env:
APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: ./scripts/build-${{ matrix.os }}-debug.sh
shell: bash

- name: Package
run: ./scripts/package-${{ matrix.os }}-debug.sh
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: twake-on-matrix-dev-${{ matrix.os }}
path: dist/
26 changes: 21 additions & 5 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:

env:
FLUTTER_VERSION: 3.32.8
LIBOLM_VERSION: 3.2.16

name: Deploying on GitHub Pages

Expand Down Expand Up @@ -34,12 +33,29 @@ jobs:
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}"

- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly

- name: Install rust-src component for nightly
run: rustup component add rust-src --toolchain nightly

- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
${{ env.VODOZEMAC_PATH }}/target
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-debug-

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Setup Nix (to build libolm)
uses: cachix/install-nix-action@v26
- name: Prepare web vodozemac
run: ./scripts/prepare-web.sh

- name: Build Web version
env:
Expand All @@ -49,9 +65,9 @@ jobs:
flutter config --enable-web
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter pub run build_runner build -d
flutter build web --release --verbose --source-maps --base-href="/${GITHUB_REPOSITORY##*/}/$FOLDER/"
echo "$TWAKE_PREVIEW_CONFIG" | yq '.issue_id = strenv(FOLDER)' > ./build/web/config.json
echo "$TWAKE_PREVIEW_CONFIG" | jq --arg folder "$FOLDER" '.issue_id = $folder' > ./build/web/config.json

- name: Configure environments
id: configure
Expand Down
54 changes: 53 additions & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Free up disk space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo docker system prune -af --volumes
echo "After cleanup:"
df -h

- name: Clean git working directory
run: git clean -fdx || echo "Warning git clean failed, but continuing with the build process..."

- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
Expand All @@ -56,6 +80,8 @@ jobs:
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
platforms: "linux/amd64,linux/arm64"
cache-from: |
Expand Down Expand Up @@ -84,6 +110,30 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Free up disk space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo docker system prune -af --volumes
echo "After cleanup:"
df -h

- name: Clean git working directory
run: git clean -fdx || echo "Warning git clean failed, but continuing with the build process..."

- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -111,6 +161,8 @@ jobs:
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
platforms: "linux/amd64,linux/arm64"
cache-from: |
Expand All @@ -120,4 +172,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
ssh: |
default
default
Loading
Loading