mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Don't use 'cross' for cross-compilation
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
parent
8f0c7b2b0d
commit
78a8c61f85
3 changed files with 14 additions and 4 deletions
3
.cargo/config.toml
Normal file
3
.cargo/config.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
[target.armv7-unknown-linux-gnueabihf]
|
||||||
|
linker = "arm-linux-gnueabihf-gcc"
|
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
|
@ -233,7 +233,15 @@ jobs:
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-${{ matrix.target }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
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
|
- 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
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
target
|
target
|
||||||
.cargo
|
|
||||||
spotify_appkey.key
|
spotify_appkey.key
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.project
|
.project
|
||||||
|
|
Loading…
Reference in a new issue