-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (46 loc) · 1.58 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name:
Build
# Controls what will trigger the workflow.
# Change it to your needs.
on:
# A new push to the "main" branch.
push:
branches: ["main"]
# A new pull request to the "main" branch.
pull_request:
branches: ["main"]
# Allows to trigger the workflow from GitHub interfaces.
workflow_dispatch:
# A single workflow can have multiple jobs.
jobs:
# 'A new job is defined with the name: "build_android"
build_windows:
# Defines what operating system will be used for the actions.
# For android, we will use Linux GitHub-Hosted Runner.
runs-on: ubuntu-22.04
# Defines what step should be passed for successful run
steps:
# Checkout to the selected branch
- name: Checkout
uses: actions/checkout@v3
# Download and install flutter packages
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
# Define which stable flutter version should be used
flutter-version: "3.23.0"
channel: "stable"
# Enables cache for flutter packages
# Speed up the process
cache: true
# Get Flutter project dependencies
- name: Update linux
run: |
sudo apt-get update -y
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Get dependencies
run: flutter pub get
- name: get flutter_distributor
run: dart pub global activate flutter_distributor
- name: Build release
run: flutter_distributor release --name=release --jobs=release-linux-deb