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

Cross-compile for aarch64-linux. #96

Merged
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,24 @@ jobs:
shell: bash
run: rustup run ${{ matrix.rust }} cargo run -p systest

build_arm_linux:
name: Cross-compile for aarch64 linux

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Rust
shell: bash
run: rustup target add aarch64-unknown-linux-gnu

- name: Install crossbuild headers
shell: bash
run: sudo apt-get update && sudo apt-get install -y crossbuild-essential-arm64

- name: Build cross compile aarch64
shell: bash
run: cargo build --workspace --exclude systest --target aarch64-unknown-linux-gnu
2 changes: 1 addition & 1 deletion cubeb-api/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl<'a, F> StreamBuilder<'a, F> {
}
}

impl<'a, F> Default for StreamBuilder<'a, F> {
impl<F> Default for StreamBuilder<'_, F> {
fn default() -> Self {
StreamBuilder {
name: None,
Expand Down
8 changes: 4 additions & 4 deletions cubeb-core/src/device_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CType = ffi::cubeb_device_collection;
#[derive(Debug)]
pub struct DeviceCollection<'ctx>(CType, &'ctx ContextRef);

impl<'ctx> DeviceCollection<'ctx> {
impl DeviceCollection<'_> {
pub(crate) fn init_with_ctx(ctx: &ContextRef, coll: CType) -> DeviceCollection {
DeviceCollection(coll, ctx)
}
Expand All @@ -24,7 +24,7 @@ impl<'ctx> DeviceCollection<'ctx> {
}
}

impl<'ctx> Drop for DeviceCollection<'ctx> {
impl Drop for DeviceCollection<'_> {
fn drop(&mut self) {
unsafe {
let _ = call!(ffi::cubeb_device_collection_destroy(
Expand All @@ -35,7 +35,7 @@ impl<'ctx> Drop for DeviceCollection<'ctx> {
}
}

impl<'ctx> ::std::ops::Deref for DeviceCollection<'ctx> {
impl ::std::ops::Deref for DeviceCollection<'_> {
type Target = DeviceCollectionRef;

#[inline]
Expand All @@ -45,7 +45,7 @@ impl<'ctx> ::std::ops::Deref for DeviceCollection<'ctx> {
}
}

impl<'ctx> ::std::convert::AsRef<DeviceCollectionRef> for DeviceCollection<'ctx> {
impl ::std::convert::AsRef<DeviceCollectionRef> for DeviceCollection<'_> {
#[inline]
fn as_ref(&self) -> &DeviceCollectionRef {
self
Expand Down
Loading