|
|
@ -21,7 +21,7 @@ jobs: |
|
|
|
build_number: ${{ steps.build_number.outputs.BUILD_NUMBER }} |
|
|
|
build_number: ${{ steps.build_number.outputs.BUILD_NUMBER }} |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v3 |
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
|
|
|
|
|
|
|
|
|
|
|
- name: Set flutter version |
|
|
|
- name: Set flutter version |
|
|
|
id: flutter_version |
|
|
|
id: flutter_version |
|
|
@ -36,21 +36,21 @@ jobs: |
|
|
|
needs: setup |
|
|
|
needs: setup |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v3 |
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
|
|
|
- uses: subosito/flutter-action@v2 |
|
|
|
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
flutter-version: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
flutter-version: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
channel: 'stable' |
|
|
|
channel: 'stable' |
|
|
|
cache: true |
|
|
|
cache: true |
|
|
|
- name: Pub dependency cache |
|
|
|
- name: Pub dependency cache |
|
|
|
uses: actions/cache@v3 |
|
|
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: ${{ env.PUB_CACHE }} |
|
|
|
path: ${{ env.PUB_CACHE }} |
|
|
|
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} |
|
|
|
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} |
|
|
|
restore-keys: | |
|
|
|
restore-keys: | |
|
|
|
${{ runner.os }}-pub- |
|
|
|
${{ runner.os }}-pub- |
|
|
|
- name: Gradle dependency cache |
|
|
|
- name: Gradle dependency cache |
|
|
|
uses: actions/cache@v3 |
|
|
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: | |
|
|
|
path: | |
|
|
|
~/.gradle/caches |
|
|
|
~/.gradle/caches |
|
|
@ -59,14 +59,14 @@ jobs: |
|
|
|
restore-keys: | |
|
|
|
restore-keys: | |
|
|
|
${{ runner.os }}-gradle- |
|
|
|
${{ runner.os }}-gradle- |
|
|
|
- name: Set up JDK 11 |
|
|
|
- name: Set up JDK 11 |
|
|
|
uses: actions/setup-java@v3 |
|
|
|
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
distribution: 'adopt' |
|
|
|
distribution: 'adopt' |
|
|
|
java-version: 11 |
|
|
|
java-version: 11 |
|
|
|
|
|
|
|
|
|
|
|
- name: Build |
|
|
|
- name: Build |
|
|
|
run: cd packages/app && flutter build apk --split-per-abi --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
run: cd packages/app && flutter build apk --split-per-abi --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
- uses: ilharp/sign-android-release@v1 |
|
|
|
- uses: ilharp/sign-android-release@2034987c31e3959f7c97e88d5e656e52e6e88bd8 # v1 |
|
|
|
name: Sign |
|
|
|
name: Sign |
|
|
|
with: |
|
|
|
with: |
|
|
|
releaseDir: packages/app/build/app/outputs/flutter-apk |
|
|
|
releaseDir: packages/app/build/app/outputs/flutter-apk |
|
|
@ -75,17 +75,17 @@ jobs: |
|
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
|
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
|
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }} |
|
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }} |
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: Android arm64-v8a |
|
|
|
name: Android arm64-v8a |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk |
|
|
|
if-no-files-found: error |
|
|
|
if-no-files-found: error |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: Android armeabi-v7a |
|
|
|
name: Android armeabi-v7a |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk |
|
|
|
if-no-files-found: error |
|
|
|
if-no-files-found: error |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: Android x86_64 |
|
|
|
name: Android x86_64 |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk |
|
|
|
path: packages/app/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk |
|
|
@ -111,14 +111,14 @@ jobs: |
|
|
|
needs: setup |
|
|
|
needs: setup |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v3 |
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
|
|
|
- uses: subosito/flutter-action@v2 |
|
|
|
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
flutter-version: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
flutter-version: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
channel: 'stable' |
|
|
|
channel: 'stable' |
|
|
|
cache: true |
|
|
|
cache: true |
|
|
|
- name: Pub dependency cache |
|
|
|
- name: Pub dependency cache |
|
|
|
uses: actions/cache@v3 |
|
|
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: ${{ env.PUB_CACHE }} |
|
|
|
path: ${{ env.PUB_CACHE }} |
|
|
|
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} |
|
|
|
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} |
|
|
@ -134,7 +134,7 @@ jobs: |
|
|
|
- name: Build |
|
|
|
- name: Build |
|
|
|
run: cd packages/app && flutter build linux --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
run: cd packages/app && flutter build linux --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: Linux x86_64 |
|
|
|
name: Linux x86_64 |
|
|
|
path: packages/app/build/linux/x64/release/bundle/* |
|
|
|
path: packages/app/build/linux/x64/release/bundle/* |
|
|
@ -146,7 +146,7 @@ jobs: |
|
|
|
needs: setup |
|
|
|
needs: setup |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v3 |
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
|
|
|
- name: Set docker image |
|
|
|
- name: Set docker image |
|
|
|
id: docker_image |
|
|
|
id: docker_image |
|
|
|
run: | |
|
|
|
run: | |
|
|
@ -154,11 +154,11 @@ jobs: |
|
|
|
echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT |
|
|
|
echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT |
|
|
|
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin |
|
|
|
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin |
|
|
|
- name: Set up QEMU |
|
|
|
- name: Set up QEMU |
|
|
|
uses: docker/setup-qemu-action@v2 |
|
|
|
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
platforms: arm64 |
|
|
|
platforms: arm64 |
|
|
|
- name: Set up Docker Buildx |
|
|
|
- name: Set up Docker Buildx |
|
|
|
uses: docker/setup-buildx-action@v2 |
|
|
|
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
platforms: linux/arm64 |
|
|
|
platforms: linux/arm64 |
|
|
|
|
|
|
|
|
|
|
@ -167,7 +167,7 @@ jobs: |
|
|
|
FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }} |
|
|
|
run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}" |
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: Linux arm64 |
|
|
|
name: Linux arm64 |
|
|
|
path: packages/app/build/linux/arm64/release/bundle/* |
|
|
|
path: packages/app/build/linux/arm64/release/bundle/* |
|
|
|