人话讲下如何用github actions编译flutter应用-以编译windows为例

actions的脚本看下这个,有简单的说明,有关于编译个平台的脚本:

https://github.com/marketplace/actions/flutter-action

打开你要编译的项目点击那个Actions按钮

然后随便点击一个脚本会跳到白框编辑界面

打开上文提到的网址随便抄下就ok

然后点击右边的commit,再次点击actions

== In progress 跑完就是了

看下我的

复制代码
# 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: Build Flutter Windows App

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

jobs:
  main:
    runs-on: windows-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v4
      - name: Set up Flutter
        uses: subosito/flutter-action@v2
        with:
          channel: stable
      - run: flutter build windows
      - name: Upload Build Artifact
        uses: actions/upload-artifact@v2
        with:
              name: windows-build-artifact
              path: build/windows/x64/runner/Release/**
相关推荐
weixin_443478511 天前
flutter组件学习之对话框与提示详解
javascript·学习·flutter
yeziyfx1 天前
Flutter开发环境vs code报错
flutter
西西学代码1 天前
flutter_blue_plus
flutter
tangweiguo030519871 天前
Flutter MVVM 完整实战:网络请求、状态管理、分页加载一网打尽
flutter
孤影过客1 天前
Flutter优雅构建:从零打造开发级工作流
arm开发·数据库·flutter
p1gd0g1 天前
flutter web 如何确保用户收到更新
flutter
GoCoding1 天前
Flutter ngspice 插件
flutter
恋猫de小郭1 天前
Android Studio Panda 2 ,支持 AI 用 Vibe Coding 创建项目
android·前端·flutter
Gorit2 天前
如何使用 Flutter 开发 HarmonyOS 应用
flutter·华为·harmonyos
孤影过客2 天前
Flutter高性能任务管理APP开发实战代码解析
jvm·flutter·oracle