Fixed LineRegion
tile generating bugs (#132)
#516
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
name: Analyse & Build | |
on: [push, workflow_dispatch] | |
jobs: | |
package-analysis: | |
name: "Analyse Package" | |
runs-on: ubuntu-latest | |
if: github.event.head_commit.message != 'Built Example Applications' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Run Dart Package Analyser | |
uses: axel-op/dart-package-analyzer@v3 | |
id: analysis | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check Package Scores | |
env: | |
TOTAL: ${{ steps.analysis.outputs.total }} | |
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }} | |
run: | | |
if (( $TOTAL < $TOTAL_MAX )) | |
then | |
echo Total score below expected minimum score. Improve the score! | |
exit 1 | |
fi | |
content-analysis: | |
name: "Analyse Contents" | |
runs-on: ubuntu-latest | |
if: github.event.head_commit.message != 'Built Example Applications' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter Environment | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Get All Dependencies | |
run: flutter pub get | |
- name: Check Formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Check Lints | |
run: dart analyze --fatal-infos --fatal-warnings | |
build-example: | |
name: "Build Example Applications" | |
runs-on: windows-latest | |
needs: [content-analysis, package-analysis] | |
if: github.event.head_commit.message != 'Built Example Applications' | |
defaults: | |
run: | |
working-directory: ./example | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Java 17 Environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Setup Flutter Environment | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Remove Existing Prebuilt Applications | |
run: Remove-Item "prebuiltExampleApplications" -Recurse -ErrorAction Ignore | |
working-directory: . | |
- name: Create Prebuilt Applications (Output) Directory | |
run: md prebuiltExampleApplications | |
working-directory: . | |
- name: Get All Dependencies | |
run: flutter pub get | |
- name: Build Android Application | |
run: flutter build apk --obfuscate --split-debug-info=/symbols | |
- name: Move Android Application To Output Directory | |
run: move "example\build\app\outputs\flutter-apk\app-release.apk" "prebuiltExampleApplications\AndroidApplication.apk" | |
working-directory: . | |
- name: Build Windows Application | |
run: flutter build windows --obfuscate --split-debug-info=/symbols | |
- name: Create Windows Application Installer | |
run: iscc "windowsApplicationInstallerSetup.iss" | |
working-directory: . | |
- name: Commit Output Directory | |
uses: EndBug/[email protected] | |
with: | |
message: "Built Example Applications" | |
add: "prebuiltExampleApplications/" | |
default_author: github_actions |