upgrade dependencies & example dead videos link #113
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_cross_platform | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'package/**' | |
- '!package/README.md' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'package/**' | |
- '!package/README.md' | |
defaults: | |
run: | |
working-directory: package/example | |
jobs: | |
android: | |
name: Android | |
runs-on: windows-latest | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
check-latest: true | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: flutter build apk --verbose | |
web: | |
name: Web | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: flutter build web --verbose | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: flutter build windows --verbose | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- run: sudo apt-get update | |
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev p7zip-full p7zip-rar | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: flutter build linux --verbose | |
macos: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: cd macos && pod install && cd .. | |
- run: flutter build macos --verbose | |
ios: | |
name: iOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
- run: flutter pub get | |
- run: flutter build ios --verbose --no-codesign | |