【发布时间】:2020-01-08 12:19:43
【问题描述】:
我正在尝试使用 GitHub Actions 来构建我的 Flutter 应用,但我不知道可以选择哪个容器映像。
是否有可用于 Flutter 的可信容器映像?
为了让 Flutter SDK 在我的构建步骤中可用,我需要进行哪些调整?
Run flutter pub get
/__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: 1: /__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: flutter: not found
##[error]Process completed with exit code 127.
我将 GitHub Actions 生成的 dart.yml 文件修改为如下所示:
name: Dart CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
【问题讨论】:
-
你用过这张图片hub.docker.com/r/cirrusci/flutter??