-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c5952
commit 1db0f0c
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |