Favorites #665
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
on: push | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- run: flutter config --enable-windows-desktop | |
- run: flutter pub get | |
- run: flutter build windows | |
- run: xcopy ".\external_dependencies\windows" ".\build\windows\runner\Release\" /y /s | |
- run: mkdir ".\build\windows\runner\Release\dlls" | |
- run: xcopy ".\dlls" ".\build\windows\runner\Release\dlls" /y /s | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: thepuzzlecell-windows | |
path: build/windows/runner/Release | |
- run: flutter build windows --debug | |
- run: xcopy ".\external_dependencies\windows" ".\build\windows\runner\Debug\" /y /s | |
- run: mkdir ".\build\windows\runner\Debug\dlls" | |
- run: xcopy ".\dlls" ".\build\windows\runner\Debug\dlls" /y /s | |
- run: xcopy ".\external_dependencies\windows" ".\build\windows\runner\Debug\" /y /s | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: thepuzzlecell-windows-debug | |
path: build/windows/runner/Debug | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- run: flutter pub get | |
- run: sudo apt install -y libunwind-dev | |
- run: sudo apt-get install libgstreamer1.0-dev | |
- run: sudo apt-get install libgstreamer-plugins-base1.0-dev | |
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev | |
- run: mkdir -p build/linux/x64/release/bundle/dlls | |
- run: mkdir -p build/linux/x64/debug/bundle/dlls | |
- run: cp -r dlls build/linux/x64/release/bundle/dlls | |
- run: cp -r dlls build/linux/x64/debug/bundle/dlls | |
- run: flutter config --enable-linux-desktop | |
- run: flutter build linux | |
- run: flutter build linux --debug | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: thepuzzlecell-linux | |
path: build/linux/x64/release/bundle | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: thepuzzlecell-linux-debug | |
path: build/linux/x64/debug/bundle | |
build_macos: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- run: brew install cmake | |
- run: gem install cocoapods | |
- run: flutter pub get | |
- run: flutter config --enable-macos-desktop | |
- run: flutter build macos | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: thepuzzlecell-macos | |
path: build/macos/Build/Products/Release |