Skip to content

Commit

Permalink
Merge commit 'f6473319f6309b2702a20ff5371763c48e129676' into spotty-dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/test.yml
#	Cargo.lock
#	Cargo.toml
  • Loading branch information
michaelherger committed Sep 8, 2024
2 parents dbbafbb + f647331 commit fb994b7
Show file tree
Hide file tree
Showing 19 changed files with 357 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
ARG debian_version=slim-bookworm
ARG rust_version=1.73.0
ARG rust_version=1.74.0
FROM rust:${rust_version}-${debian_version}

ARG DEBIAN_FRONTEND=noninteractive
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
ENV RUST_BACKTRACE=1
ENV RUSTFLAGS=-Dwarnings
ENV RUSTFLAGS="-D warnings -A renamed-and-removed-lints"


RUN apt-get update && \
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
env:
RUST_BACKTRACE: 1
KEYMASTER_CLIENT_ID: ${{ secrets.KEYMASTER_CLIENT_ID }}
RUSTFLAGS: -D warnings
RUSTFLAGS: -D warnings -A renamed-and-removed-lints

# The layering here is as follows:
# 1. code formatting
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
matrix:
os: [ubuntu-latest]
toolchain:
- "1.73" # MSRV (Minimum supported rust version)
- "1.74" # MSRV (Minimum supported rust version)
- stable
experimental: [false]
# Ignore failures in beta
Expand Down Expand Up @@ -171,12 +171,16 @@ jobs:
matrix:
os: [windows-latest]
toolchain:
- "1.73" # MSRV (Minimum supported rust version)
- "1.74" # MSRV (Minimum supported rust version)
- stable
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7

# hyper-rustls >=0.27 uses aws-lc as default backend which requires NASM to build
- name: Install NASM
uses: ilammy/setup-nasm@v1.5.1

- name: Write Build Configuration File
uses: DamianReeves/write-file-action@v1.0
with:
Expand Down Expand Up @@ -221,7 +225,7 @@ jobs:
os: [ubuntu-latest]
target: [armv7-unknown-linux-gnueabihf]
toolchain:
- "1.73" # MSRV (Minimum supported rust version)
- "1.74" # MSRV (Minimum supported rust version)
- stable
steps:
- name: Checkout code
Expand Down Expand Up @@ -251,7 +255,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 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
target
.cargo
spotify_appkey.key
.vagrant/
.project
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ https://github.com/librespot-org/librespot
configurations.
- [audio] Files are now downloaded over the HTTPS CDN (breaking)
- [audio] Improve file opening and seeking performance (breaking)
- [core] MSRV is now 1.73 (breaking)
- [core] MSRV is now 1.74 (breaking)
- [connect] `DeviceType` moved out of `connect` into `core` (breaking)
- [connect] Update and expose all `spirc` context fields (breaking)
- [connect] Add `Clone, Defaut` traits to `spirc` contexts
Expand Down
Loading

0 comments on commit fb994b7

Please sign in to comment.