This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
Remove app-own crypto implementation and add kmp-advcrypto as dependency #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: kmp-advcrypto | |
on: | |
push: | |
# TODO: Don't create Android SDK if SDK was cached | |
jobs: | |
build-linux: | |
name: Linux Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
architecture: 'x64' | |
cache: 'gradle' | |
- name: Setup Konan Cache | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-konan-cache | |
path: ~/.konan | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 | |
- name: Build and Test | |
run: ./gradlew :kmp-advcrypto:cleanLinuxX64Test :kmp-advcrypto:linuxX64Test --info | |
build-android: | |
name: Android Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
api-level: [30, 31, 32, 33] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
architecture: 'x64' | |
cache: 'gradle' | |
- name: Enable KVM | |
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 | |
- name: Run tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
profile: Nexus 6 | |
arch: x86_64 | |
force-avd-creation: false | |
disable-animations: true | |
emulator-options: -no-snapshot -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
script: ./gradlew :kmp-advcrypto:connectedDebugAndroidTest --info |