wip: Update build & test workflows #107
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, dev] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24.3" | |
channel: "stable" | |
- run: | | |
sudo apt-get update | |
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev | |
sudo apt-get install -y keybinder-3.0 | |
- uses: bluefireteam/melos-action@v3 | |
- working-directory: ./packages/window_manager/example | |
run: | | |
flutter build linux --release | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24.3" | |
channel: "stable" | |
- uses: bluefireteam/melos-action@v3 | |
- working-directory: ./packages/window_manager/example | |
run: | | |
flutter build macos --release | |
build-web: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24.3" | |
channel: "stable" | |
- uses: bluefireteam/melos-action@v3 | |
- working-directory: ./packages/window_manager/example | |
run: | | |
flutter build web --release | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24.3" | |
channel: "stable" | |
- uses: bluefireteam/melos-action@v3 | |
- working-directory: ./packages/window_manager/example | |
run: | | |
flutter build windows --release |