Skip to content

Commit 845c0a5

Browse files
committed
updates
1 parent 9a149ac commit 845c0a5

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
macos:
2323
name: Test on macOS
24-
runs-on: macos-14
24+
runs-on: macos-latest
2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
4343
ios:
4444
name: Test on iOS
45-
runs-on: macos-14
45+
runs-on: macos-latest
4646
steps:
4747
- name: Checkout repository
4848
uses: actions/checkout@v4
@@ -75,20 +75,32 @@ jobs:
7575
path: '.fvmrc'
7676
cache: true
7777

78+
- name: Set up JDK 17
79+
uses: actions/setup-java@v3
80+
with:
81+
java-version: '17'
82+
distribution: 'temurin'
83+
84+
- name: Setup Android SDK
85+
uses: android-actions/setup-android@v3
86+
with:
87+
packages: 'tools platform-tools'
88+
7889
- name: Accept SDK licenses
7990
shell: bash
8091
run: |
8192
sudo apt-get update
8293
sudo apt-get install -y unzip
8394
echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --licenses || true
84-
- name: Prepare Android emulator + Flutter
85-
shell: bash
95+
96+
- name: Prepare Android emulator
8697
env:
8798
API_LEVEL: "33"
8899
TARGET: "google_atd"
89100
ARCH: "x86_64"
90101
DEVICE_NAME: "android_emulator"
91102
DEVICE_TYPE: "pixel_5"
103+
shell: bash
92104
run: |
93105
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH
94106
sdkmanager "platform-tools" "platforms;android-${API_LEVEL}"
@@ -127,7 +139,7 @@ jobs:
127139
128140
linux:
129141
name: Test on Linux
130-
runs-on: ubuntu-22.04
142+
runs-on: ubuntu-24.04
131143
steps:
132144
- name: Checkout repository
133145
uses: actions/checkout@v4
@@ -141,7 +153,24 @@ jobs:
141153
- name: Install desktop deps
142154
run: |
143155
sudo apt-get update --allow-releaseinfo-change
144-
sudo apt-get install -y xvfb libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
156+
sudo apt-get install -y \
157+
xvfb \
158+
libgtk-3-dev \
159+
libgstreamer1.0-dev \
160+
libgstreamer-plugins-base1.0-dev \
161+
libgstreamer-plugins-bad1.0-dev \
162+
gstreamer1.0-plugins-base \
163+
gstreamer1.0-plugins-good \
164+
gstreamer1.0-plugins-bad \
165+
gstreamer1.0-plugins-ugly \
166+
gstreamer1.0-libav \
167+
gstreamer1.0-tools \
168+
gstreamer1.0-x \
169+
gstreamer1.0-alsa \
170+
gstreamer1.0-gl \
171+
gstreamer1.0-gtk3 \
172+
gstreamer1.0-qt5 \
173+
gstreamer1.0-pulseaudio
145174
146175
- name: Run tests
147176
shell: bash
@@ -152,7 +181,7 @@ jobs:
152181
153182
linux-arm64:
154183
name: Test on Linux ARM64
155-
runs-on: ubuntu-22.04-arm64 # change if you use self-hosted ARM64
184+
runs-on: ubuntu-24.04-arm
156185
steps:
157186
- name: Checkout repository
158187
uses: actions/checkout@v4

0 commit comments

Comments
 (0)