Skip to content

Add CI

Add CI #2

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Flutter
env:
flutter-version: 3.19.6
channel: stable
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-windows-target:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows target
# You may pin to the exact commit or the version.
# uses: subosito/flutter-action@1c5eb12d812966ca84680edc38353a0851c8fd56
uses: subosito/flutter-action@v2.14.0
with:
# The Flutter version to make available on the path
flutter-version: ${{ env.flutter-version }}
# The Flutter build release channel
channel: ${{ env.channel }}
# Cache the Flutter SDK
cache: true
- run: flutter build windows --release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4.3.3
with:
name: windows_64
path: build/windows/runner/Release/