From 33ed8921f50db14fda319cc2df675dc34178b3be Mon Sep 17 00:00:00 2001 From: Jonas Anker Rasmussen Date: Sat, 27 Jan 2024 12:35:27 +0100 Subject: [PATCH] Only apply on Android --- .github/actions/build_android/action.yml | 7 +++++++ .github/actions/setup_flutter_environment/action.yml | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/build_android/action.yml b/.github/actions/build_android/action.yml index 7b5561c2..b816ec81 100644 --- a/.github/actions/build_android/action.yml +++ b/.github/actions/build_android/action.yml @@ -50,6 +50,13 @@ runs: with: build_type: ${{ inputs.build_type }} + - name: Setup build tool version variable + shell: bash + run: | + BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) + echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV + echo Last build tool version is: $BUILD_TOOL_VERSION + - name: "[dev] Build Android app (apk)" if: ${{ inputs.build_type == 'development' }} run: | diff --git a/.github/actions/setup_flutter_environment/action.yml b/.github/actions/setup_flutter_environment/action.yml index 3eb5c16f..20ec2f6d 100644 --- a/.github/actions/setup_flutter_environment/action.yml +++ b/.github/actions/setup_flutter_environment/action.yml @@ -28,13 +28,6 @@ runs: run: flutter pub get shell: bash - - name: Setup build tool version variable - shell: bash - run: | - BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) - echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV - echo Last build tool version is: $BUILD_TOOL_VERSION - - name: "[prod] Change target backend to production" if: ${{ inputs.build_type == 'production' }} run: sed -i'' -e 's/.env.develop/.env.production/' lib/env/env.dart