From ea477e67a41f8dc9292626311201e340e97dbe94 Mon Sep 17 00:00:00 2001 From: yanghui08 Date: Wed, 17 Dec 2025 10:59:52 +0800 Subject: [PATCH 1/3] feat: add trigger branch. --- .github/workflows/main.yml | 12 ++++++++---- .gitignore | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5dd93a..ee791ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,11 +3,13 @@ name: build on: push: branches: + - main - master - develop - release/* pull_request: branches: + - main - master - develop - release/* @@ -19,19 +21,21 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 - name: Set up Flutter - uses: subosito/flutter-action@v1 + uses: subosito/flutter-action@v2 with: flutter-version: '3.32.0' - - run: flutter pub get + - name: Get dependencies + run: flutter pub get + working-directory: ./example - name: Build Android run: flutter build apk diff --git a/.gitignore b/.gitignore index bd11619..20ef0bf 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ example/lib/config.dart /test nertc_core.run.xml nertc_core.iml -analysis_options.yaml \ No newline at end of file +analysis_options.yaml +pubspec.lock \ No newline at end of file From be0979fb2e5add5f80d71653c104e64cd3bc7a5e Mon Sep 17 00:00:00 2001 From: yanghui08 Date: Wed, 17 Dec 2025 11:23:16 +0800 Subject: [PATCH 2/3] feat: update java distribution. --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee791ab..2bbeda4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,8 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v4 with: - java-version: 1.8 + java-version: '8' + distribution: 'temurin' - name: Set up Flutter uses: subosito/flutter-action@v2 From 62548274f6f2120f6019decee1cb5af17fda799b Mon Sep 17 00:00:00 2001 From: yanghui08 Date: Wed, 17 Dec 2025 11:28:40 +0800 Subject: [PATCH 3/3] feat: update java version. --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2bbeda4..6811df8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,11 +23,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 1.8 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '8' + java-version: '17' distribution: 'temurin' + cache: 'gradle' - name: Set up Flutter uses: subosito/flutter-action@v2