Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
CI API 24 cache
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Dec 10, 2023
1 parent 4d428d3 commit f815174
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/instrumented.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 24
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
with:
api-level: 24
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
Expand Down
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"private": true,
"version": "1.0.0",
"scripts": {
"compile-workflows": "ejs -f ./templates/workflows/data.json -o ./.github/workflows/instrumented.yml ./templates/workflows/instrumented.ejs"
"compile-workflows": "ejs -f ./templates/workflows/data.json -o ./.github/workflows/instrumented.yml ./templates/workflows/instrumented.ejs && js-yaml -t ./.github/workflows/instrumented.yml > /dev/null"
},
"author": "Breautek",
"license": "Apache-2.0",
"devDependencies": {
"ejs": "^3.1.9"
"ejs": "^3.1.9",
"js-yaml": "^4.1.0"
}
}
16 changes: 8 additions & 8 deletions templates/workflows/instrumented.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@<%= config.actionAndroidEmulatorRunnerVersion %>
with:
api-level: <%= job.api %>
arch: <%= job.arch %>
target: <%= job.target %>
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
with:
api-level: <%= job.api %>
arch: <%= job.arch %>
target: <%= job.target %>
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: run tests
uses: reactivecircus/android-emulator-runner@<%= config.actionAndroidEmulatorRunnerVersion %>
with:
Expand Down

0 comments on commit f815174

Please sign in to comment.