Skip to content

Commit fb09689

Browse files
committed
Configure hardware-level workflow disabling
1 parent 2bb9ba1 commit fb09689

File tree

1 file changed

+61
-56
lines changed

1 file changed

+61
-56
lines changed

.github/workflows/build.yml

Lines changed: 61 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -6,74 +6,79 @@ on:
66
pull_request:
77
branches: [ master, main ]
88
workflow_dispatch:
9-
inputs:
10-
build_android:
11-
description: 'Build Android APK'
12-
required: true
13-
type: boolean
14-
default: false
15-
build_ios:
16-
description: 'Build iOS'
17-
required: true
18-
type: boolean
19-
default: false
20-
build_web:
21-
description: 'Build Web'
22-
required: true
23-
type: boolean
24-
default: false
25-
build_windows:
26-
description: 'Build Windows'
27-
required: true
28-
type: boolean
29-
default: false
30-
build_macos:
31-
description: 'Build macOS'
32-
required: true
33-
type: boolean
34-
default: false
35-
build_linux:
36-
description: 'Build Linux'
37-
required: true
38-
type: boolean
39-
default: false
409

4110
jobs:
42-
build:
11+
android:
12+
name: Android Build
13+
if: false # ENABLE_ANDROID: Set to true to enable hardware allocation
4314
runs-on: ubuntu-latest
44-
if: false # Explicitly disabled: project not ready for release builds
4515
steps:
4616
- uses: actions/checkout@v3
47-
48-
- name: Setup Flutter
49-
uses: subosito/flutter-action@v2
17+
- uses: subosito/flutter-action@v2
5018
with:
5119
flutter-version: '3.10.7'
52-
channel: 'stable'
53-
cache: true
20+
- run: flutter pub get
21+
- run: flutter build apk --release
5422

55-
- name: Install Dependencies
56-
run: flutter pub get
57-
58-
- name: Build Android
59-
if: ${{ github.event_name == 'push' || inputs.build_android }}
60-
run: flutter build apk --release
23+
ios:
24+
name: iOS Build
25+
if: false # ENABLE_IOS: Set to true to enable hardware allocation
26+
runs-on: macos-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: subosito/flutter-action@v2
30+
with:
31+
flutter-version: '3.10.7'
32+
- run: flutter pub get
33+
- run: flutter build ios --release --no-codesign
6134

62-
- name: Build Web
63-
if: ${{ github.event_name == 'push' || inputs.build_web }}
64-
run: flutter build web --release
35+
web:
36+
name: Web Build
37+
if: false # ENABLE_WEB: Set to true to enable hardware allocation
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v3
41+
- uses: subosito/flutter-action@v2
42+
with:
43+
flutter-version: '3.10.7'
44+
- run: flutter pub get
45+
- run: flutter build web --release
6546

66-
- name: Build Windows
67-
if: ${{ inputs.build_windows }}
68-
run: flutter build windows --release
47+
windows:
48+
name: Windows Build
49+
if: false # ENABLE_WINDOWS: Set to true to enable hardware allocation
50+
runs-on: windows-latest
51+
steps:
52+
- uses: actions/checkout@v3
53+
- uses: subosito/flutter-action@v2
54+
with:
55+
flutter-version: '3.10.7'
56+
- run: flutter pub get
57+
- run: flutter build windows --release
6958

70-
- name: Build macOS
71-
if: ${{ inputs.build_macos }}
72-
run: flutter build macos --release
59+
macos:
60+
name: macOS Build
61+
if: false # ENABLE_MACOS: Set to true to enable hardware allocation
62+
runs-on: macos-latest
63+
steps:
64+
- uses: actions/checkout@v3
65+
- uses: subosito/flutter-action@v2
66+
with:
67+
flutter-version: '3.10.7'
68+
- run: flutter pub get
69+
- run: flutter build macos --release
7370

74-
- name: Build Linux
75-
if: ${{ inputs.build_linux }}
76-
run: |
71+
linux:
72+
name: Linux Build
73+
if: false # ENABLE_LINUX: Set to true to enable hardware allocation
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: subosito/flutter-action@v2
78+
with:
79+
flutter-version: '3.10.7'
80+
- run: |
7781
sudo apt-get update -y
7882
sudo apt-get install -y ninja-build libgtk-3-dev
83+
flutter pub get
7984
flutter build linux --release

0 commit comments

Comments
 (0)