diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5dd93a..6811df8 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,23 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 1.8 + java-version: '17' + distribution: 'temurin' + cache: 'gradle' - 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