From ce95e166623576647b2edc9bc1ebb3b7f8ce8101 Mon Sep 17 00:00:00 2001 From: David Senk Date: Tue, 3 Sep 2024 17:43:43 -0400 Subject: [PATCH] macos, linux, android, and web targets --- .github/workflows/linux-web.yaml | 56 ++++++++++++++++++++++++++++++++ .github/workflows/macos-ios.yaml | 36 ++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 .github/workflows/linux-web.yaml create mode 100644 .github/workflows/macos-ios.yaml diff --git a/.github/workflows/linux-web.yaml b/.github/workflows/linux-web.yaml new file mode 100644 index 0000000..e75ff87 --- /dev/null +++ b/.github/workflows/linux-web.yaml @@ -0,0 +1,56 @@ +name: Build Linux, Android and Web + +on: + push: + branches: + - devel + pull_request: + branches: + - devel + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + channel: 'stable' + flutter-version: '3.24.1' + + - name: Install dependencies + run: flutter pub get + + - name: Build for Linux + run: flutter build linux + + - name: Build for Android + run: flutter build appbundle + + - name: Build for web + run: flutter build web + + - name: Gather linux artifacts + uses: actions/upload-artifact@v4 + with: + name: flutter-linux-build-latest + path: build/linux + if-no-files-found: error + + - name: Gather android artifacts + uses: actions/upload-artifact@v4 + with: + name: flutter-android-build-latest + path: build/app/outputs/bundle + if-no-files-found: error + + - name: Gather web artifacts + uses: actions/upload-artifact@v4 + with: + name: flutter-web-build-latest + path: build/web + if-no-files-found: error diff --git a/.github/workflows/macos-ios.yaml b/.github/workflows/macos-ios.yaml new file mode 100644 index 0000000..f355e56 --- /dev/null +++ b/.github/workflows/macos-ios.yaml @@ -0,0 +1,36 @@ +name: Build MacOS (iOS not enabled) + +on: + push: + branches: + - devel + pull_request: + branches: + - devel + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + channel: 'stable' + flutter-version: '3.24.1' + + - name: Install dependencies + run: flutter pub get + + - name: Build for MacOS + run: flutter build macos + + - name: Gather macos artifacts + uses: actions/upload-artifact@v4 + with: + name: flutter-macos-build-latest + path: build/macos/Build + if-no-files-found: error