From 1db0f0c0fa46538fa033bde1bb9050f49eebbc93 Mon Sep 17 00:00:00 2001 From: digvijay13873 <71278693+digvijay13873@users.noreply.github.com> Date: Mon, 10 Jan 2022 11:00:23 +0530 Subject: [PATCH] Create mac.yml --- .github/workflows/mac.yml | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/mac.yml diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml new file mode 100644 index 0000000..318419a --- /dev/null +++ b/.github/workflows/mac.yml @@ -0,0 +1,60 @@ +name: mac + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macOS-10.15] + include: + - os: macOS-10.15 + TARGET: macos + # Disable fail-fast; we want results from all OSes even if one fails. + fail-fast: false + + steps: + - uses: actions/checkout@v2 + with: + path: fde + - uses: actions/checkout@v2 + with: + path: flutter + repository: flutter/flutter + ref: master + # Shallow clones don't work; see https://github.com/flutter/flutter/issues/18532 + fetch-depth: 0 + - name: Add Flutter tags + # Add tags, which are also necessary for version checks to work. + run: git fetch origin +refs/tags/*:refs/tags/* + working-directory: ${{ github.workspace }}/flutter + - name: Add Flutter to path - macOS/Linux + if: startsWith(matrix.os, 'macOS') || startsWith(matrix.os, 'ubuntu') + run: echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH + - name: Enable desktop support + run: | + flutter config --enable-macos-desktop + - name: Doctor + # Run doctor, for ease of debugging any issues. + run: flutter doctor -v + - name: Build lib debug + run: | + flutter packages get + flutter build -v ${{matrix.TARGET}} --debug + working-directory: ${{ github.workspace }}/fde/lib + - name: Build lib release + run: | + flutter packages get + flutter build -v ${{matrix.TARGET}} --release + working-directory: ${{ github.workspace }}/fde/lib + - name: Build plugins debug + run: | + flutter packages get + flutter build -v ${{matrix.TARGET}} --debug + working-directory: ${{ github.workspace }}/fde/plugins/file_selector/example + - name: Build plugins release + run: | + flutter packages get + flutter build -v ${{matrix.TARGET}} --release + working-directory: ${{ github.workspace }}/fde/plugins/file_selector/example