Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Drop unneeded cargo-ndk tool from build-test #476

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,38 +70,32 @@ jobs:
os: [ubuntu-latest]
rust-channel: [stable, nightly]
rust-target:
- { triple: "armv7-linux-androideabi", abi: armeabi-v7a }
- { triple: "aarch64-linux-android", abi: arm64-v8a }
- { triple: "i686-linux-android", abi: x86 }
- { triple: "x86_64-linux-android", abi: x86_64 }
- armv7-linux-androideabi
- aarch64-linux-android
- i686-linux-android
- x86_64-linux-android
include:
- os: windows-latest
rust-channel: stable
rust-target: { triple: "aarch64-linux-android", abi: arm64-v8a }
rust-target: aarch64-linux-android
- os: windows-latest
rust-channel: stable
rust-target: { triple: "x86_64-linux-android", abi: x86_64 }
rust-target: x86_64-linux-android

runs-on: ${{ matrix.os }}
name: Cross-compile

steps:
- uses: actions/checkout@v4

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Install cargo-ndk
run: cargo install cargo-ndk

- name: Installing Rust ${{ matrix.rust-channel }} w/ ${{ matrix.rust-target.triple }}
- name: Installing Rust ${{ matrix.rust-channel }} w/ ${{ matrix.rust-target }}
uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.rust-target.triple }}
target: ${{ matrix.rust-target }}
toolchain: ${{ matrix.rust-channel }}

- name: Compile for ${{ matrix.rust-target.triple }}
run: cargo ndk -t ${{ matrix.rust-target.abi }} build
- name: Compile for ${{ matrix.rust-target }}
run: cargo build --target ${{ matrix.rust-target }}

build-host:
strategy:
Expand Down
Loading