Don't use 'cross' for cross-compilation

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser 2024-08-29 15:46:03 +02:00
parent 8f0c7b2b0d
commit 78a8c61f85
No known key found for this signature in database
3 changed files with 14 additions and 4 deletions

3
.cargo/config.toml Normal file
View file

@ -0,0 +1,3 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

View file

@ -233,7 +233,15 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.target }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- name: Install cross
run: cargo install cross || true
- name: Install the cross compiler targets
run: rustup target add ${{ matrix.target }}
- name: Install cross compiler toolchain
run: sudo apt-get install -y gcc-arm-linux-gnueabihf
- name: Build
run: cross build --target ${{ matrix.target }} --no-default-features
run: cargo build --verbose --target ${{ matrix.target }} --no-default-features
- name: Check binary
run: file target/${{ matrix.target }}/debug/librespot

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
target
.cargo
spotify_appkey.key
.vagrant/
.project