shitman/.forgejo/workflows/main-build.yaml
zeyus 777acbc773
All checks were successful
/ build-web (push) Successful in 52s
ugghhhhhh
2025-07-22 23:32:52 +02:00

49 lines
1.3 KiB
YAML

on:
push:
branches:
- main
jobs:
build-web:
# custom runner image -> includes node and latest flutter stable
runs-on: flutter-web-builder
steps:
- name: Checkout code
uses: actions/checkout@v4
# Cache pub dependencies (this should work now)
- name: Cache pub dependencies
uses: actions/cache@v4
id: cache-pub
with:
path: /opt/pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
# Cache build outputs and tool cache
- name: Cache Flutter build
uses: actions/cache@v4
with:
path: |
.dart_tool
build
key: ${{ runner.os }}-flutter-build-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('lib/**/*.dart') }}
restore-keys: |
${{ runner.os }}-flutter-build-${{ hashFiles('**/pubspec.lock') }}-
${{ runner.os }}-flutter-build-
- name: Get dependencies
run: flutter pub get
- name: Build web
run: flutter build web --wasm --release
- name: List build output
run: ls -la build/web/
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: web-build
path: build/web/