Skip to content

add flutter test to the github actions #63

add flutter test to the github actions

add flutter test to the github actions #63

name: Windows Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.4'
channel: 'stable'
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: build and copy dll
run: ./build.bat
working-directory: mycelffi
- name: Install Flutter dependencies
run: flutter pub get
- run: flutter test
- name: Build myceliumflut for Windows
run: flutter build