Skip to content

Commit

Permalink
[CI] Run tests on ubuntu-24.04. Set up conan before testing. Use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jun 19, 2024
1 parent a67007c commit 72d1ca7
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ permissions:
jobs:
build:
if: "!contains(github.event.head_commit.message, '[SkipCI]')"
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand Down Expand Up @@ -93,8 +93,7 @@ jobs:
if-no-files-found: error

instrumentedTests-aosp_atd-target:
# Only macos VMs are available with exposed CPU extensions to run hardware accelerated emulator
runs-on: macos-13
runs-on: ubuntu-24.04
name: android-${{ matrix.api-level }} on ${{ matrix.arch }} (${{ matrix.api-type-target }})
needs: build
strategy:
Expand All @@ -115,6 +114,37 @@ jobs:
java-version: 17
- uses: android-actions/setup-android@v3

- name: setup python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: install python dependencies
run: pip install --upgrade pip conan

- run: conan config install .github/conan
- run: |
conan profile list
conan profile show
- uses: actions/checkout@v4
with:
repository: ViliusSutkus89/conan-odr-index
ref: pdf2htmlEX_and_deps
path: conan-odr-index

- uses: actions/cache/restore@v4
with:
path: ~/.conan2
key: conan-cache

- run: python scripts/conan_export_all_packages.py
working-directory: conan-odr-index

- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: reactivecircus/android-emulator-runner@v2
with:
force-avd-creation: false
Expand Down Expand Up @@ -150,8 +180,7 @@ jobs:
if-no-files-found: error

instrumentedTests-default-target:
# Only macos VMs are available with exposed CPU extensions to run hardware accelerated emulator
runs-on: macos-13
runs-on: ubuntu-24.04
name: android-${{ matrix.api-level }} on ${{ matrix.arch }} (${{ matrix.api-type-target }})
needs: build
strategy:
Expand All @@ -168,6 +197,37 @@ jobs:
java-version: 17
- uses: android-actions/setup-android@v3

- name: setup python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: install python dependencies
run: pip install --upgrade pip conan

- run: conan config install .github/conan
- run: |
conan profile list
conan profile show
- uses: actions/checkout@v4
with:
repository: ViliusSutkus89/conan-odr-index
ref: pdf2htmlEX_and_deps
path: conan-odr-index

- uses: actions/cache/restore@v4
with:
path: ~/.conan2
key: conan-cache

- run: python scripts/conan_export_all_packages.py
working-directory: conan-odr-index

- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: reactivecircus/android-emulator-runner@v2
with:
force-avd-creation: false
Expand Down

0 comments on commit 72d1ca7

Please sign in to comment.