Skip to content

Add CI

Add CI #8

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: Download additional dependencies
shell: bash
run: ./scripts/get_windows_dependencies.sh
# mv deps/* build/windows/x64/runner/Release/data/flutter_assets/assets/executables
- name: Extract ffmpeg and mpv
shell: pwsh
run: |
7z.exe e -odeps .\mpv.7z d3dcompiler_43.dll mpv.exe
7z.exe e -odeps .\ffmpeg.7z ffmpeg.exe -r
- name: Move dependencies
shell: pwsh
run: mv deps/* build/windows/x64/runner/Release/data/flutter_assets/assets/executables
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4.3.3
with:
name: windows_64
path: build/windows/x64/runner/Release