人话讲下如何用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/**
相关推荐
火柴就是我17 小时前
flutter 之真手势冲突处理
android·flutter
Speed12317 小时前
`mockito` 的核心“打桩”规则
flutter·dart
法的空间17 小时前
Flutter JsonToDart 支持 JsonSchema
android·flutter·ios
恋猫de小郭18 小时前
Android 将强制应用使用主题图标,你怎么看?
android·前端·flutter
玲珑Felone18 小时前
从flutter源码看其渲染机制
android·flutter
ALLIN2 天前
Flutter 三种方式实现页面切换后保持原页面状态
flutter
Dabei2 天前
Flutter 国际化
flutter
Dabei2 天前
Flutter MQTT 通信文档
flutter
Dabei2 天前
Flutter 中实现 TCP 通信
flutter
孤鸿玉2 天前
ios flutter_echarts 不在当前屏幕 白屏修复
flutter