@@ -19,16 +19,19 @@ concurrency:
1919 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2020 cancel-in-progress : true
2121
22+ env :
23+ ndk_version : 26.1.10909125
24+
2225jobs :
2326 build :
2427 runs-on : ubuntu-20.04
25-
2628 steps :
2729 - name : checkout
2830 uses : actions/checkout@v3
2931
3032 - name : install ninja
3133 run : sudo apt-get install -y ninja-build
34+
3235 - name : setup java
3336 uses : actions/setup-java@v3
3437 with :
@@ -41,31 +44,24 @@ jobs:
4144 python-version : 3.8
4245
4346 - name : install pip and conan
44- run : python -m pip install --upgrade pip conan==1.*
47+ run : python -m pip install --upgrade pip conan
48+
49+ - name : install ndk
50+ run : echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${{ env.ndk_version }}"
4551
46- - name : conan config
47- run : conan config set general.revisions_enabled=1
4852 - name : conan remote
49- run : |
50- conan remote clean
51- conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
52- conan remote add conancenter https://center.conan.io
53+ run : conan remote add --index 0 odr https://artifactory.opendocument.app/artifactory/api/conan/conan
5354 - name : conan login
54- run : conan user -- remote odr --password ${{ secrets.ARTIFACTORY }} admin
55+ run : conan remote login odr admin --password ${{ secrets.ARTIFACTORY }}
5556
56- - name : tweak conan profile for build machine
57- run : |
58- echo "" >> conanprofile_build.txt
59- echo "[settings]" >> conanprofile_build.txt
60- echo "compiler=clang" >> conanprofile_build.txt
61- echo "compiler.libcxx=libstdc++11" >> conanprofile_build.txt
62- echo "" >> conanprofile_build.txt
57+ - name : conan profile
58+ run : conan profile detect
6359
6460 - name : gradle
6561 run : ./gradlew assembleDebug lintProDebug lintLiteDebug --stacktrace
6662
6763 - name : upload binaries to conan repo
68- run : conan upload "*" --remote odr --confirm --all --no-overwrite all
64+ run : conan upload "*" --check --confirm --remote odr
6965
7066 - name : upload apks
7167 uses : actions/upload-artifact@v3
@@ -112,7 +108,7 @@ jobs:
112108 - name : install brew
113109 run : ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
114110 - name : fix ninja install
115- run : rm ' /usr/local/bin/2to3'
111+ run : rm /usr/local/bin/2to3
116112 - name : install ninja
117113 run : brew install ninja
118114 # https://stackoverflow.com/a/57758679/198996
@@ -124,25 +120,15 @@ jobs:
124120 - name : install pip
125121 run : python3 -m ensurepip
126122 - name : install conan
127- run : pip3 install --upgrade conan==1.*
123+ run : pip3 install --upgrade conan
128124
129- - name : conan config
130- run : conan config set general.revisions_enabled=1
131125 - name : conan remote
132- run : |
133- conan remote clean
134- conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
135- conan remote add conancenter https://center.conan.io
126+ run : conan remote add --index 0 odr https://artifactory.opendocument.app/artifactory/api/conan/conan
136127 - name : conan login
137- run : conan user -- remote odr --password ${{ secrets.ARTIFACTORY }} admin
128+ run : conan remote login odr admin --password ${{ secrets.ARTIFACTORY }}
138129
139- - name : tweak conan profile for build machine
140- run : |
141- echo "" >> conanprofile_build.txt
142- echo "[settings]" >> conanprofile_build.txt
143- echo "compiler=clang" >> conanprofile_build.txt
144- echo "compiler.libcxx=libc++" >> conanprofile_build.txt
145- echo "" >> conanprofile_build.txt
130+ - name : conan profile
131+ run : conan profile detect
146132
147133 - name : Android Virtual Device (AVD) cache
148134 uses : actions/cache@v3
@@ -151,7 +137,7 @@ jobs:
151137 path : |
152138 ~/.android/avd/*
153139 ~/.android/adb*
154- key : avd-${{ matrix.arch }}-${{ matrix.api-level }}
140+ key : avd-${{ matrix.arch }}-${{ matrix.api-level }}-r3
155141
156142 - name : Create AVD and generate snapshot for caching
157143 if : steps.avd-cache.outputs.cache-hit != 'true'
@@ -160,8 +146,6 @@ jobs:
160146 api-level : ${{ matrix.api-level }}
161147 arch : ${{ matrix.arch }}
162148 target : google_apis
163- sdcard-path-or-size : 1G
164- disk-size : 8G
165149 script : echo "Generated AVD snapshot for caching."
166150
167151 - name : Run tests
@@ -172,8 +156,6 @@ jobs:
172156 api-level : ${{ matrix.api-level }}
173157 arch : ${{ matrix.arch }}
174158 target : google_apis
175- sdcard-path-or-size : 1G
176- disk-size : 8G
177159 script : |
178160 mkdir -p testResults/screenshots
179161 adb logcat > testResults/logcat.txt &
@@ -193,7 +175,7 @@ jobs:
193175 test ! -f sorry_but_tests_are_failing
194176
195177 - name : upload binaries to conan repo
196- run : conan upload "*" --remote odr --confirm --all --no-overwrite all
178+ run : conan upload "*" --check --confirm --remote odr
197179
198180 - name : upload test results
199181 uses : actions/upload-artifact@v3
0 commit comments