Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 committed Jan 26, 2025
0 parents commit 273fc96
Show file tree
Hide file tree
Showing 6 changed files with 4,163 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build and Test

on:
push:
branches: [ "main", "master" ]
pull_request:

env:
CARGO_TERM_COLOR: always
FLUTTER_VERSION: "3.19.0"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'stable'

- name: Install flutter_rust_bridge_codegen
run: cargo install flutter_rust_bridge_codegen --version "^2.0.0"

- name: Generate bridge code
run: flutter_rust_bridge_codegen generate

- name: Check formatting
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy -- -D warnings

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Flutter pub get
run: flutter pub get

- name: Flutter analyze
run: flutter analyze
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 273fc96

Please sign in to comment.