Skip to content

Create CI Pipelines #15

Create CI Pipelines

Create CI Pipelines #15

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
FLUTTER_BIN_REL: '/bin/flutter'
jobs:
build_android:
runs-on: ubuntu-latest
container:
# trying to be close to the f-droid build to detect failures early
image: registry.gitlab.com/fdroid/fdroidserver:buildserver-bullseye
env:
ANDROID_HOME: /opt/android-sdk
steps:
- name: apt update
run: sudo apt update
- name: Install jq
run: sudo apt install jq
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.5'
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
- run: echo ${{ env.FLUTTER_ROOT }}${{ FLUTTER_BIN_REL }}

Check failure on line 37 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 37, Col: 16): Unrecognized named-value: 'FLUTTER_BIN_REL'. Located at position 1 within expression: FLUTTER_BIN_REL .github/workflows/build.yml (Line: 39, Col: 16): Unrecognized named-value: 'FLUTTER_BIN_REL'. Located at position 1 within expression: FLUTTER_BIN_REL
- run: ${{ env.FLUTTER_ROOT }}${{ FLUTTER_BIN_REL }} config --no-analytics
- run: ${{ env.FLUTTER_ROOT }}${{ FLUTTER_BIN_REL }} --version
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Android APK
run: ${{ env.FLUTTER_ROOT }}${{ FLUTTER_BIN_REL }} build apk
- name: Upload Android apk
uses: actions/upload-artifact@v3
with:
name: Android apk
path: ./build/app/outputs/flutter-apk/app-release.apk