Skip to content

Commit 2821b3d

Browse files
Merge branch 'development' into issue1206
2 parents 0d436af + 5a3e818 commit 2821b3d

File tree

19 files changed

+446
-169
lines changed

19 files changed

+446
-169
lines changed

.github/actions/android/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
using: "composite"
2727
steps:
2828
- name: Set up Java
29-
uses: actions/setup-java@v4
29+
uses: actions/setup-java@v5
3030
with:
3131
java-version: 17
3232
distribution: 'adopt'

.github/actions/debian/action.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Debian Workflow"
2+
3+
inputs:
4+
VERSION_NAME:
5+
description: 'Version Name to be used for build'
6+
required: false
7+
default: '1.0.0'
8+
VERSION_CODE:
9+
description: 'Version Code to be used for build'
10+
required: true
11+
default: '1'
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
cache: true
20+
flutter-version-file: pubspec.yaml
21+
22+
- name: Install Linux dependencies
23+
shell: bash
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y \
27+
libgtk-3-dev \
28+
liblzma-dev \
29+
clang \
30+
cmake \
31+
ninja-build \
32+
pkg-config \
33+
libglib2.0-dev \
34+
libblkid-dev \
35+
libgcrypt20-dev
36+
37+
- name: Build Linux (Debian) App
38+
shell: bash
39+
env:
40+
VERSION_NAME: ${{ inputs.VERSION_NAME }}
41+
VERSION_CODE: ${{ inputs.VERSION_CODE }}
42+
run: |
43+
flutter build linux --build-name $VERSION_NAME --build-number $VERSION_CODE

.github/actions/macos/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "macOS Workflow"
2+
3+
inputs:
4+
VERSION_NAME:
5+
description: 'Version Name to be used for build'
6+
required: false
7+
default: '1.0.0'
8+
VERSION_CODE:
9+
description: 'Version Code to be used for build'
10+
required: true
11+
default: '1'
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
cache: true
20+
flutter-version-file: pubspec.yaml
21+
22+
- name: Build macOS App
23+
shell: bash
24+
env:
25+
VERSION_NAME: ${{ inputs.VERSION_NAME }}
26+
VERSION_CODE: ${{ inputs.VERSION_CODE }}
27+
run: |
28+
flutter build macos --build-name $VERSION_NAME --build-number $VERSION_CODE

.github/actions/screenshot-android/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: "composite"
1515
steps:
1616
- name: Set up Java
17-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1818
with:
1919
java-version: 17
2020
distribution: 'adopt'
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "iPad Screenshots Workflow"
2+
3+
inputs:
4+
IPAD_DEVICE_MODEL:
5+
description: 'Model of the iPad device to be used when running tests'
6+
required: false
7+
default: iPad Pro 13-inch (M4)
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Set up Flutter
13+
uses: subosito/flutter-action@v2
14+
with:
15+
cache: true
16+
flutter-version-file: pubspec.yaml
17+
18+
- name: Update Podfile
19+
shell: bash
20+
run: |
21+
cd ./iOS
22+
flutter pub get
23+
pod install --repo-update
24+
25+
- name: Create iPad Simulator
26+
id: ipad_sim
27+
uses: futureware-tech/simulator-action@v4
28+
with:
29+
model: ${{ inputs.IPAD_DEVICE_MODEL }}
30+
wait_for_boot: true
31+
32+
- name: Capture iPad Screenshots
33+
shell: bash
34+
run: |
35+
DEVICE_NAME="${{ inputs.IPAD_DEVICE_MODEL }}" flutter drive --driver=test_integration/test_driver.dart --target=test_integration/screenshots.dart -d "${{ steps.ipad_sim.outputs.udid }}"
36+
37+
- name: Update Fastlane Metadata
38+
if: ${{ github.event_name == 'push' }}
39+
shell: bash
40+
run: |
41+
git config --global user.name "github-actions[bot]"
42+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
43+
44+
cd ./iOS
45+
git clone --branch=fastlane-ios --depth=1 https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} fastlane
46+
cd fastlane
47+
48+
rm -rf screenshots/iPad*
49+
cp -r ../../screenshots/. screenshots/
50+
51+
# Force push to fastlane branch
52+
git checkout --orphan temporary
53+
git add --all .
54+
git commit -am "[Auto] Update screenshots ($(date +%Y-%m-%d.%H:%M:%S))"
55+
git branch -D fastlane-ios
56+
git branch -m fastlane-ios
57+
git push --force origin fastlane-ios
58+
59+
- name: Upload Screenshots
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: iPad Screenshots
63+
path: screenshots/*

.github/actions/screenshot-ios/action.yml renamed to .github/actions/screenshot-iphone/action.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
name: "iOS Screenshots Workflow"
1+
name: "iPhone Screenshots Workflow"
22

33
inputs:
44
IPHONE_DEVICE_MODEL:
55
description: 'Model of the iPhone device to be used when running tests'
66
required: false
77
default: iPhone 16 Pro Max
8-
IPAD_DEVICE_MODEL:
9-
description: 'Model of the iPad device to be used when running tests'
10-
required: false
11-
default: iPad Pro 13-inch (M4)
128

139
runs:
1410
using: "composite"
@@ -27,26 +23,16 @@ runs:
2723
pod install --repo-update
2824
2925
- name: Create iPhone Simulator
26+
id: iphone_sim
3027
uses: futureware-tech/simulator-action@v4
3128
with:
3229
model: ${{ inputs.IPHONE_DEVICE_MODEL }}
3330
wait_for_boot: true
3431

35-
- name: Create iPad Simulator
36-
uses: futureware-tech/simulator-action@v4
37-
with:
38-
model: ${{ inputs.IPAD_DEVICE_MODEL }}
39-
wait_for_boot: true
40-
4132
- name: Capture iPhone Screenshots
4233
shell: bash
4334
run: |
44-
DEVICE_NAME="${{ inputs.IPHONE_DEVICE_MODEL }}" flutter drive --driver=test_integration/test_driver.dart --target=test_integration/screenshots.dart -d "${{ inputs.IPHONE_DEVICE_MODEL }}"
45-
46-
- name: Capture iPad Screenshots
47-
shell: bash
48-
run: |
49-
DEVICE_NAME="${{ inputs.IPAD_DEVICE_MODEL }}" flutter drive --driver=test_integration/test_driver.dart --target=test_integration/screenshots.dart -d "${{ inputs.IPAD_DEVICE_MODEL }}"
35+
DEVICE_NAME="${{ inputs.IPHONE_DEVICE_MODEL }}" flutter drive --driver=test_integration/test_driver.dart --target=test_integration/screenshots.dart -d "${{ steps.iphone_sim.outputs.udid }}"
5036
5137
- name: Update Fastlane Metadata
5238
if: ${{ github.event_name == 'push' }}
@@ -59,7 +45,7 @@ runs:
5945
git clone --branch=fastlane-ios --depth=1 https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} fastlane
6046
cd fastlane
6147
62-
rm -rf screenshots/*
48+
rm -rf screenshots/iPhone*
6349
cp -r ../../screenshots/. screenshots/
6450
6551
# Force push to fastlane branch
@@ -73,5 +59,5 @@ runs:
7359
- name: Upload Screenshots
7460
uses: actions/upload-artifact@v4
7561
with:
76-
name: iOS Screenshots
62+
name: iPhone Screenshots
7763
path: screenshots/*

.github/actions/windows/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Windows Workflow"
2+
3+
inputs:
4+
VERSION_NAME:
5+
description: 'Version Name to be used for build'
6+
required: false
7+
default: '1.0.0'
8+
VERSION_CODE:
9+
description: 'Version Code to be used for build'
10+
required: true
11+
default: '1'
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Set up Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
cache: true
20+
flutter-version-file: pubspec.yaml
21+
22+
- name: Build Windows App
23+
shell: bash
24+
env:
25+
VERSION_NAME: ${{ inputs.VERSION_NAME }}
26+
VERSION_CODE: ${{ inputs.VERSION_CODE }}
27+
run: |
28+
flutter build windows --build-name $VERSION_NAME --build-number $VERSION_CODE

.github/workflows/clean_screenshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
ref: pr-screenshots
1919

.github/workflows/devcontainer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
packages: write
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Lowercase repository owner
1717
run: echo "REPO_OWNER_LOWER=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}

.github/workflows/flutter_upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Read Flutter version from pubspec.yaml
1717
id: read-version

0 commit comments

Comments
 (0)