subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.17k stars 193 forks source link

flutter config --enable-linux-desktop doesn't apply before building #139

Closed mpconte closed 2 years ago

mpconte commented 2 years ago

With the sample workflow:

name: Build Flutter Demo for Linux

on:
  workflow_dispatch:  

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2      

      - uses: subosito/flutter-action@v2
        with:
         channel: 'stable'

      - run: |
          sudo apt-get update -y
          sudo sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev 

      - name: Enable Linux desktop development 
        run: |          
          flutter config --enable-linux-desktop

      - name: Build linux application
        run: |
          flutter packages get
          flutter build linux

Returns the following error on flutter build linux:

image