-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (60 loc) · 1.37 KB
/
build.yml
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
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/iyox-studios/flutter_rust
volumes:
- ${{ GITHUB.WORKSPACE }}:/root/wormhole
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
run: |
make lint
build_android:
name: Build Android
needs: lint
runs-on: ubuntu-latest
container:
image: ghcr.io/iyox-studios/flutter_rust
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Android
run: |
make get-dep
make apk
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: android
path: |
build/app/outputs/flutter-apk/*.apk
build/app/outputs/bundle/*.aab
build_linux:
name: Build Linux
needs: lint
runs-on: ubuntu-latest
container:
image: ghcr.io/iyox-studios/flutter_rust
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Linux
run: |
export HOME=/root/
make get-dep
make linux
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux
path: |
build/linux/x64/release/bundle/