Update widget_test.dart #80
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.10.5" | |
channel: "stable" | |
cache: true | |
- name: Install Rust Language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Build Windows | |
run: | | |
cd app | |
flutter pub get | |
flutter build windows --release | |
copy C:\Windows\System32\msvcp140.dll build/windows/runner/Release | |
copy C:\Windows\System32\vcruntime140.dll build/windows/runner/Release | |
copy C:\Windows\System32\vcruntime140_1.dll build/windows/runner/Release | |
- name: Upload Windows | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Era Connect Windows | |
path: app/build/windows/runner/Release | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.10.5" | |
channel: "stable" | |
cache: true | |
- name: Install Rust Language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev | |
- name: Build Linux | |
run: | | |
cd app | |
flutter pub get | |
flutter build linux --release | |
- name: Upload Linux | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Era Connect Linux (AMD64) | |
path: app/build/linux/x64/release/bundle | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.10.5" | |
channel: "stable" | |
cache: true | |
- name: Install Rust Language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
target: aarch64-apple-darwin | |
- name: Build macOS | |
run: | | |
cd app | |
flutter pub get | |
flutter build macos --release | |
# Create a DMG installer. | |
cp assets/era_connect_app_icon.icns build/macos/Build/Products | |
cd build/macos/Build/Products | |
brew install create-dmg | |
create-dmg \ | |
--volname "Era Connect Installer" \ | |
--volicon "era_connect_app_icon.icns" \ | |
--window-pos 200 120 \ | |
--window-size 800 529 \ | |
--icon "Era Connect.app" 260 250 \ | |
--hide-extension "Era Connect.app" \ | |
--app-drop-link 540 250 \ | |
--hdiutil-quiet \ | |
"Era-Connect-macOS-Installer.dmg" \ | |
"Release/" | |
- name: Upload macOS | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Era Connect macOS | |
path: app/build/macos/Build/Products/Era-Connect-macOS-Installer.dmg |