-
Notifications
You must be signed in to change notification settings - Fork 26
70 lines (60 loc) · 1.97 KB
/
Copy pathbuild-app.yml
File metadata and controls
70 lines (60 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build Test App
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
name: Build Flutter-Pi Bundle (${{ matrix.arch }}, ${{ matrix.cpu}})
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- arm
- arm64
- x64
- riscv64
cpu:
- generic
include:
- arch: arm
cpu: pi3
- arch: arm
cpu: pi4
- arch: arm64
cpu: pi3
- arch: arm64
cpu: pi4
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version: 3.38.4
- name: Install dependencies & Activate as global executable
run: |
flutter pub get
flutter pub global activate -spath .
- name: Create test app
run: flutter create test_app
- name: Run flutterpi_tool build
working-directory: test_app
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: |
echo '::group::flutterpi_tool build ... --debug-unoptimized'
flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --debug-unoptimized --debug-symbols --verbose
echo '::endgroup::'
echo '::group::flutterpi_tool build ... --debug'
flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --debug --debug-symbols --verbose
echo '::endgroup::'
echo '::group::flutterpi_tool build ... --profile'
flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --profile --debug-symbols --verbose
echo '::endgroup::'
echo '::group::flutterpi_tool build ... --release'
flutterpi_tool build --arch=${{ matrix.arch }} --cpu=${{ matrix.cpu }} --release --debug-symbols --verbose
echo '::endgroup::'