我正在尝试使用 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.
我将dart.yml
GitHub Actions 生成的文件修改为如下所示:
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