Skip to content

Commit

Permalink
feat: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hpp2334 committed Mar 7, 2024
1 parent 5b7cc66 commit 0315ca4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and release

on:
push:
branches: ["master", "feat/actions"]

env:
CARGO_TERM_COLOR: always

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 '[email protected]'
- name: Generate codes
run: pnpm run generate
- name: Run tests
run: cargo test --verbose
- name: Build APK
run: pnpm run build:apk

0 comments on commit 0315ca4

Please sign in to comment.