fix(udp): retry send on first EINVAL #44
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: CI | |
on: | |
push: | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: "21 3 * * 5" | |
jobs: | |
test-android: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [x86_64-linux-android, i686-linux-android] | |
emulator-arch: [x86_64, x86] | |
api-level: [26, 25] | |
exclude: | |
- target: x86_64-linux-android | |
emulator-arch: x86 | |
- target: i686-linux-android | |
emulator-arch: x86_64 | |
steps: | |
- name: Set API level environment variable | |
run: echo "API_LEVEL=${{ matrix.api-level }}" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Install Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Install Android NDK | |
run: sdkmanager --install "ndk;25.2.9519653" | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-ndk | |
run: cargo install cargo-ndk | |
- name: Build unit tests for Android | |
run: cargo ndk -t ${{ matrix.target }} test --no-run | |
- 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 | |
- name: Set up Android Emulator and run tests | |
env: | |
TARGET: ${{ matrix.target }} | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ matrix.emulator-arch }} | |
script: .github/workflows/rust-android-run-tests-on-emulator.sh |