feat(project): setting project icon #38
Workflow file for this run
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 (Linux, Mac OS, Windows) | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build-linux: | |
name: "Build Linux" | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Flutter SDK | |
uses: subosito/[email protected] | |
with: | |
channel: "stable" | |
- name: Install Linux build tools | |
run: sudo apt-get update && sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev squashfs-tools | |
- name: Enable desktop | |
run: flutter config --enable-linux-desktop | |
- name: Get packages | |
run: flutter pub get | |
- name: Analyze | |
run: flutter analyze | |
- name: Flutter build app | |
run: flutter build linux | |
- name: Compress artifacts | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: linux-dev.zip | |
- name: Upload Build Zip | |
uses: actions/[email protected] | |
with: | |
name: sidekick-linux-dev.zip | |
path: linux-dev.zip | |
- name: Install appbuilder deps | |
run: | | |
sudo add-apt-repository universe | |
sudo apt install libfuse2 libgtk-3-0 | |
- name: Install appimagebuilder | |
run: | | |
wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage | |
chmod +x appimage-builder-x86_64.AppImage | |
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder | |
- name: Build AppImage | |
run: | | |
appimage-builder --recipe AppImageBuilder.yml | |
- name: Upload Build AppImage | |
uses: actions/[email protected] | |
with: | |
name: sidekick-linux-dev.AppImage | |
path: Sidekick-latest-x86_64.AppImage | |
build-macos: | |
name: "Build MacOS" | |
runs-on: macos-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Flutter SDK | |
uses: subosito/[email protected] | |
with: | |
channel: "stable" | |
- name: Set Up XCode | |
uses: BoundfoxStudios/action-xcode-select@v1 | |
- name: Enable desktop | |
run: flutter config --enable-macos-desktop | |
- name: Get packages | |
run: flutter pub get | |
- name: Analyze | |
run: flutter analyze | |
- name: Flutter build app | |
run: flutter build macos | |
- name: Install create-dmg | |
run: brew install create-dmg | |
- name: Create dmg | |
run: | | |
./scripts/create_mac_dmg.sh | |
- name: Compress artifacts | |
run: zip -r macos-dev.zip build/macos/Build/Products/Release | |
- name: Upload Build DMG | |
uses: actions/[email protected] | |
with: | |
name: sidekick-macos-dev.dmg | |
path: build/macos/Build/Products/Release/Sidekick.dmg | |
- name: Upload Build Zip | |
uses: actions/[email protected] | |
with: | |
name: sidekick-macos-dev.zip | |
path: macos-dev.zip | |
build-windows: | |
name: "Build Windows" | |
runs-on: windows-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Flutter SDK | |
uses: subosito/[email protected] | |
with: | |
channel: "stable" | |
- name: Enable desktop | |
run: flutter config --enable-windows-desktop | |
- name: Get packages | |
run: flutter pub get | |
- name: Analyze | |
run: flutter analyze | |
- name: Write MS Store | |
uses: DamianReeves/[email protected] | |
with: | |
path: lib/modifiers.dart | |
contents: | | |
// Generated file. Do not modify | |
const isMSStore = false; | |
write-mode: overwrite | |
- name: Flutter build app | |
run: flutter build windows | |
- name: Compress artifacts | |
run: tar.exe -a -c -f windows-dev.zip build/windows/Runner/release | |
- name: Upload Build Zip | |
uses: actions/[email protected] | |
with: | |
name: sidekick-windows-dev.zip | |
path: windows-dev.zip |