Skip to content

Commit b2bc74c

Browse files
committed
git: update workflow
1 parent e734577 commit b2bc74c

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.github/workflows/dart.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,25 @@ name: Dart
88
on:
99
workflow_dispatch:
1010

11+
defaults:
12+
run:
13+
working-directory: app
14+
1115
jobs:
1216
setup:
1317
uses: ./.github/workflows/setup.yml
18+
secrets: inherit
1419

1520
build_android:
1621
needs: setup
1722
runs-on: ubuntu-latest
1823

1924
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
token: ${{ secrets.PAT }}
28+
submodules: recursive
29+
2030
- uses: actions/setup-java@v1
2131
with:
2232
java-version: "21"
@@ -44,7 +54,6 @@ jobs:
4454
flutter pub get
4555
flutter pub upgrade
4656
git clone https://github.com/namidaco/namida-translations/ assets/language
47-
git clone https://github.com/MSOB7YY/ffmpeg_build ./ffmpeg_build
4857
find ./ -type f -exec sed -i -e 's/com.msob7y.namida/com.msob7y.namida.snapshot/g' {} \;
4958
echo ${{ secrets.ANDROID_SIGNING_KEYSTORE }} | base64 --decode > android/app/keystore.jks
5059
echo ${{ secrets.ANDROID_SIGNING_KEY_PROPERTIES }} | base64 --decode > android/key.properties

.github/workflows/dart_windows.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@
33
# separate terms of service, privacy policy, and support
44
# documentation.
55

6-
name: Dart
6+
name: Dart Windows
77

88
on:
99
workflow_dispatch:
1010

11+
12+
defaults:
13+
run:
14+
working-directory: app
15+
1116
jobs:
1217
setup:
1318
uses: ./.github/workflows/setup.yml
19+
secrets: inherit
1420

1521
build_windows:
1622
needs: setup
1723
runs-on: windows-latest
1824

1925
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
token: ${{ secrets.PAT }}
29+
submodules: recursive
30+
2031
- name: Build Windows App
2132
run: |
2233
flutter config --enable-windows-desktop

.github/workflows/setup.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ on:
77
description: "App version"
88
value: ${{ jobs.setup.outputs.version }}
99

10+
defaults:
11+
run:
12+
working-directory: app
13+
1014
jobs:
1115
setup:
1216
runs-on: ubuntu-latest
1317
outputs:
1418
version: ${{ steps.extract_version.outputs.version }}
1519

1620
steps:
17-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
1822
with:
1923
token: ${{ secrets.PAT }}
2024
submodules: recursive
@@ -36,7 +40,6 @@ jobs:
3640
- name: Git Submodule Update
3741
run: |
3842
git clone https://github.com/namidaco/namida-translations/ assets/language
39-
git clone https://github.com/MSOB7YY/ffmpeg_build ./ffmpeg_build
4043
4144
- name: Setup dependencies
4245
run: |

0 commit comments

Comments
 (0)