人话讲下如何用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/**
      

相关推荐

  1. 如何编写测试

    2024-07-21 05:24:03       27 阅读
  2. windows环境vscode配置gcc编译代码

    2024-07-21 05:24:03       44 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-21 05:24:03       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-21 05:24:03       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-21 05:24:03       45 阅读
  4. Python语言-面向对象

    2024-07-21 05:24:03       55 阅读

热门阅读

  1. 【19】成绩计算

    2024-07-21 05:24:03       14 阅读
  2. 开源的语音合成工具_ChatTTS_用法及资源

    2024-07-21 05:24:03       19 阅读
  3. C++基础入门(一)(命名空间,输入输出,缺省参数)

    2024-07-21 05:24:03       15 阅读
  4. python中使用openpyxl库写一个简单的表格

    2024-07-21 05:24:03       13 阅读
  5. Spring Boot外部配置加载顺序

    2024-07-21 05:24:03       18 阅读
  6. 【前后端联调】MethodArgumentNotValidException

    2024-07-21 05:24:03       16 阅读
  7. Vue的自定义事件:组件间通讯的艺术

    2024-07-21 05:24:03       15 阅读
  8. Spring中存储Bean的相关注解及用法

    2024-07-21 05:24:03       18 阅读
  9. Perl中的时间机器:探索文件系统同步机制

    2024-07-21 05:24:03       16 阅读
  10. Perl异步编程新纪元:非阻塞I/O的魔力

    2024-07-21 05:24:03       19 阅读
  11. Perl线程调度优化:掌握线程优先级的艺术

    2024-07-21 05:24:03       13 阅读
  12. 渗透测试过程中如何做好个人防护?

    2024-07-21 05:24:03       20 阅读
  13. [ptrade交易实战] 第十七篇 期货交易类函数!

    2024-07-21 05:24:03       22 阅读
  14. 【C++11】initializer_list、可变参数模板详解

    2024-07-21 05:24:03       22 阅读