1 Commits
Author SHA1 Message Date
florian 2751bd8b4c Fixed issues with Build files for Android and Linux
Build Android Apk / android (release) Failing after 11m8s
Build Linux Application / linux (release) Failing after 4m49s
Publish Docker Image / docker (release) Successful in 13m55s
2026-09-01 15:24:41 +02:00
3 changed files with 37 additions and 14 deletions
+21 -7
View File
@@ -29,11 +29,18 @@ jobs:
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
# The flutter tool runs git inside the workspace, which the container # The flutter tool runs git inside the workspace and inside its own sdk,
# user does not own after the checkout. # and git refuses to work in directories it considers to belong to
# somebody else.
- name: Trust the workspace - name: Trust the workspace
run: git config --global --add safe.directory '*' run: git config --global --add safe.directory '*'
# Everything the flutter download below needs.
- name: Install the download tools
run: |
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl xz-utils
- name: Set up Java - name: Set up Java
uses: https://github.com/actions/setup-java@v4 uses: https://github.com/actions/setup-java@v4
with: with:
@@ -47,12 +54,19 @@ jobs:
- name: Set up the Android sdk - name: Set up the Android sdk
uses: https://github.com/android-actions/setup-android@v3 uses: https://github.com/android-actions/setup-android@v3
# `subosito/flutter-action` cannot be used: it caches the sdk through
# `actions/cache@v5`, and the act-runner of this gitea instance only
# supports actions up to node20 ("runs.using ... got node24"). Unpacking
# the official archive does the same thing and pins the version exactly,
# just like `ac_web/Dockerfile` does.
- name: Set up Flutter - name: Set up Flutter
uses: https://github.com/subosito/flutter-action@v2 run: |
with: curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
flutter-version: ${{ env.FLUTTER_VERSION }} | tar -xJ -C /opt
channel: stable echo "/opt/flutter/bin" >> "$GITHUB_PATH"
cache: true
- name: Show the flutter version
run: flutter --version
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get
+15 -7
View File
@@ -28,8 +28,9 @@ jobs:
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
# The flutter tool runs git inside the workspace, which the container # The flutter tool runs git inside the workspace and inside its own sdk,
# user does not own after the checkout. # and git refuses to work in directories it considers to belong to
# somebody else.
- name: Trust the workspace - name: Trust the workspace
run: git config --global --add safe.directory '*' run: git config --global --add safe.directory '*'
@@ -42,12 +43,19 @@ jobs:
libgtk-3-dev liblzma-dev libstdc++-12-dev \ libgtk-3-dev liblzma-dev libstdc++-12-dev \
curl unzip xz-utils curl unzip xz-utils
# `subosito/flutter-action` cannot be used: it caches the sdk through
# `actions/cache@v5`, and the act-runner of this gitea instance only
# supports actions up to node20 ("runs.using ... got node24"). Unpacking
# the official archive does the same thing and pins the version exactly,
# just like `ac_web/Dockerfile` does.
- name: Set up Flutter - name: Set up Flutter
uses: https://github.com/subosito/flutter-action@v2 run: |
with: curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
flutter-version: ${{ env.FLUTTER_VERSION }} | tar -xJ -C /opt
channel: stable echo "/opt/flutter/bin" >> "$GITHUB_PATH"
cache: true
- name: Show the flutter version
run: flutter --version
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get
+1
View File
@@ -44,6 +44,7 @@ Widget tests run against a mocked backend: build a `MockClient` that answers by
Notes that are easy to get wrong: Notes that are easy to get wrong:
- **The act-runner of the gitea instance only supports actions up to `node20`.** Anything newer fails with `The runs.using key in action.yml must be one of: [...], got node24`, which is why the Flutter sdk is unpacked from the official archive instead of through `subosito/flutter-action` (that one caches through `actions/cache@v5`). Check the `runs.using` of an action before adding it.
- The Flutter version is pinned in three places (`FLUTTER_VERSION` in both build workflows, `ARG FLUTTER_VERSION` in `ac_web/Dockerfile`) and must be kept in sync. - The Flutter version is pinned in three places (`FLUTTER_VERSION` in both build workflows, `ARG FLUTTER_VERSION` in `ac_web/Dockerfile`) and must be kept in sync.
- Steps run with `working-directory: ac_web`, but `upload-artifact` paths are relative to the repository root. - Steps run with `working-directory: ac_web`, but `upload-artifact` paths are relative to the repository root.
- The workflows are read from the tag the release points at, so they have to be committed **before** the release is created. - The workflows are read from the tag the release points at, so they have to be committed **before** the release is created.