forked from librespot-org/librespot
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58e4c97
commit 236ef13
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ env: | |
# 4. cross compilation on Windows and Linux/ARM | ||
|
||
jobs: | ||
if: false | ||
fmt: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
|
@@ -177,7 +178,7 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
# hyper-rustls >=0.27 uses aws-lc as default backend which requires NASM to build | ||
- name: Install NASM | ||
uses: ilammy/[email protected] | ||
|
@@ -225,7 +226,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
target: | ||
target: | ||
- armv7-unknown-linux-gnueabihf | ||
- aarch64-unknown-linux-gnu | ||
- riscv64gc-unknown-linux-gnu | ||
|
@@ -263,7 +264,7 @@ jobs: | |
|
||
- name: Install the cross compiler rust targets | ||
run: rustup target add ${{ matrix.target }} | ||
|
||
- name: Install cross compiler | ||
run: | | ||
if [ ${{ matrix.target }} = "armv7-unknown-linux-gnueabihf" ]; then | ||
|
@@ -275,12 +276,12 @@ jobs: | |
if [ ${{ matrix.target }} = "riscv64gc-unknown-linux-gnu" ]; then | ||
sudo apt-get install -y gcc-riscv64-linux-gnu | ||
fi | ||
- name: Set target link compiler | ||
run: | | ||
# Convert target to uppercase and replace - with _ | ||
target=${{ matrix.target }} | ||
target=${target^^} | ||
target=${target^^} | ||
target=${target//-/_} | ||
if [ ${{ matrix.target }} = "armv7-unknown-linux-gnueabihf" ]; then | ||
echo "CARGO_TARGET_${target}_LINKER=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV | ||
|
@@ -291,11 +292,11 @@ jobs: | |
if [ ${{ matrix.target }} = "riscv64gc-unknown-linux-gnu" ]; then | ||
echo "CARGO_TARGET_${target}_LINKER=riscv64-linux-gnu-gcc" >> $GITHUB_ENV | ||
fi | ||
- name: Fetch | ||
run: cargo fetch --locked | ||
- name: Build | ||
run: cargo build --frozen --verbose --target ${{ matrix.target }} --no-default-features | ||
|
||
- name: Check binary | ||
run: file target/${{ matrix.target }}/debug/librespot |
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
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