Demo build #11
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: Demo build | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./superuser/example | |
jobs: | |
build_win: | |
name: Windows build | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.x | |
- name: Get dependencies | |
run: flutter pub get | |
working-directory: ./superuser | |
- name: Build example | |
run: flutter build windows --release | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: superuser_demo_windows | |
path: superuser/example/build/windows/x64/runner/Release/ | |
build_linux: | |
name: Linux build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.x | |
- name: Get dependencies | |
run: flutter pub get | |
working-directory: ./superuser | |
- name: Install tools | |
run: sudo apt update && sudo apt install curl git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev -y | |
- name: Build example | |
run: flutter build linux --release | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: superuser_demo_linux | |
path: superuser/example/build/linux/x64/release/bundle/ |