subosito / flutter-action

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

Empty directory for ios build using macos #157

Closed Andrflor closed 2 years ago

Andrflor commented 2 years ago

I have been successfully building web and android using this action on ubuntu-latest. I don't understand why but my repo directory is present but empty when i try a iOS build using this yaml:

# This is the workflow run for Ios release
name: Ios Release

# Controls when the workflow will run
on:
  push:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  release:
    runs-on: macos-latest
    steps:
      - uses: subosito/flutter-action@v2.4.0
        with:
          flutter-version: '2.10.5'
          channel: stable
          architecture: x64
      - name: Build ios bundle
        run: |
          ls -al
          ls -al ../
          flutter pub get
          flutter analyze
          flutter test
          flutter build ios --obfuscate --split-debug-info=build/app/outputs/symbols --release --no-codesign

ls -al returns empty dir ls -al ../ returns one folder having the name of my repo

Is it an issue coming from that action? Is there anything I'm missing?

Andrflor commented 2 years ago

Nevermind just needed a break...

      - uses: actions/checkout@v2

was missing from the CI :face_with_spiral_eyes: