我正在尝试使用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