Tried new build workflow
This commit is contained in:
@@ -12,7 +12,12 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK
|
||||
run: sudo apt-get update && sudo apt-get install -y openjdk-11-jdk
|
||||
run: |
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
sudo apt-get update && sudo apt-get install -y openjdk-11-jdk
|
||||
else
|
||||
apt-get update && apt-get install -y openjdk-11-jdk
|
||||
fi
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
run: |
|
||||
@@ -24,7 +29,11 @@ jobs:
|
||||
- name: Install Android SDK command-line tools and components
|
||||
run: |
|
||||
export ANDROID_SDK_ROOT="$HOME/android-sdk"
|
||||
sudo apt-get update && sudo apt-get install -y unzip
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
sudo apt-get update && sudo apt-get install -y unzip
|
||||
else
|
||||
apt-get update && apt-get install -y unzip
|
||||
fi
|
||||
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools
|
||||
cd $ANDROID_SDK_ROOT
|
||||
wget https://dl.google.com/android/repository/commandlinetools-linux_latest.zip -O cmdline-tools.zip
|
||||
@@ -55,7 +64,7 @@ jobs:
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: false
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -77,7 +86,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
if: f
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user