Skip to content

Commit

Permalink
Create mac.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
digvijay13873 authored Jan 10, 2022
1 parent 90c5952 commit 1db0f0c
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1db0f0c

Please sign in to comment.