Fixed issues with Build files for Android and Linux
This commit is contained in:
@@ -29,11 +29,18 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
# The flutter tool runs git inside the workspace, which the container
|
||||
# user does not own after the checkout.
|
||||
# The flutter tool runs git inside the workspace and inside its own sdk,
|
||||
# and git refuses to work in directories it considers to belong to
|
||||
# somebody else.
|
||||
- name: Trust the workspace
|
||||
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
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
with:
|
||||
@@ -47,12 +54,19 @@ jobs:
|
||||
- name: Set up the Android sdk
|
||||
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
|
||||
uses: https://github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
channel: stable
|
||||
cache: true
|
||||
run: |
|
||||
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
|
||||
| tar -xJ -C /opt
|
||||
echo "/opt/flutter/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Show the flutter version
|
||||
run: flutter --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
Reference in New Issue
Block a user