Skip to content

Commit 120444e

Browse files
authored
Merge pull request #246 from hannesa2/FasterLinuxBuild
Faster linux build
2 parents e43fa61 + 8e75e06 commit 120444e

24 files changed

+12
-3
lines changed

.github/workflows/Android-CI.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ matrix.os }}
3232
strategy:
3333
matrix:
34-
os: [ macOS-13 ]
34+
os: [ ubuntu-22.04 ]
3535
api: [ 28 ]
3636
abi: [ x86_64 ]
3737
tag: [ default ]
@@ -48,8 +48,17 @@ jobs:
4848
run: |
4949
echo ${{ needs.env-job.outputs.modified-branch-name }}
5050
- uses: gradle/wrapper-validation-action@v3
51+
- name: kvm support
52+
run: |
53+
egrep -c '(vmx|svm)' /proc/cpuinfo
54+
id
55+
sudo adduser $USER kvm
56+
sudo chown -R $USER /dev/kvm
57+
id
5158
- name: prepare
52-
run: brew install exiftool imagemagick
59+
run: |
60+
sudo apt-get update && sudo apt-get install -y exiftool imagemagick xdg-utils libimage-exiftool-perl zsh jq xorg
61+
# brew install exiftool imagemagick
5362
- name: set up JDK ${{ matrix.java_version }}
5463
uses: actions/setup-java@v4
5564
with:
@@ -89,7 +98,7 @@ jobs:
8998
emulatorApi: ${{ matrix.emulatorApi }}
9099
run: |
91100
ls -ls app/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
92-
cp app/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected/emulator\(AVD\)\ -\ ${{ matrix.emulatorApi }}/* screenshotsToCompare${{ matrix.emulatorApi }}
101+
cp app/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected/emulator-5554\ -\ ${{ matrix.emulatorApi }}/* screenshotsToCompare${{ matrix.emulatorApi }}
93102
export DISPLAY=:99
94103
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
95104
./screenShotScript/screenShotCompare.sh
-8 Bytes
Loading
-8 Bytes
Loading
-3 Bytes
Loading
-16 Bytes
Loading
-8 Bytes
Loading
-8 Bytes
Loading
-8 Bytes
Loading
-16 Bytes
Loading
-16 Bytes
Loading

0 commit comments

Comments
 (0)