Skip to content

Commit

Permalink
Create dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnetwork authored Jun 25, 2024
1 parent b685519 commit f76290e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Windows Application

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Navigate to project directory
run: cd mrt_wallet

- name: Set Flutter directory
run: echo "FLUTTER_ROOT=flutter_sdk" >> $GITHUB_ENV

- name: Download and set up Flutter
run: |
curl -L -o flutter.zip https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.3.8-stable.zip
Expand-Archive -Path flutter.zip -DestinationPath ${{ env.FLUTTER_ROOT }}
echo "${{ env.FLUTTER_ROOT }}\flutter\bin" >> $GITHUB_PATH
- name: Install dependencies
run: flutter pub get
working-directory: mrt_wallet

- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
working-directory: mrt_wallet

- name: Build Windows
run: flutter build windows --release
working-directory: mrt_wallet

- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: windows-build
path: mrt_wallet/build/windows/runner/Release/

0 comments on commit f76290e

Please sign in to comment.