-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.28 KB
/
release.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
name: Build and release
on:
push:
branches: ["master", "feat/actions"]
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.5'
channel: 'stable'
- name: Install scripts runtime
run: pnpm install
- name: Install cargo-ndk
run: |
cargo install cargo-ndk
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
- name: Install flutter dependencies
run: flutter pub get
- name: Install flutter rust bridge
run: |
cargo install cargo-expand
cargo install '[email protected]'
- name: Generate codes
run: pnpm run generate
- name: Run tests
run: cargo test --verbose
- name: Build APK
run: pnpm run build:apk
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/apk/*.apk
# tag: ${{ github.ref }}
tag: "v0.0.1"
overwrite: true
file_glob: true