1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00

ci: bump MSRV to 1.85 and update actions

This commit is contained in:
Roderick van Domburg 2025-08-13 17:06:14 +02:00
parent 1dcd041070
commit 648c9e30ea
No known key found for this signature in database
GPG key ID: 607FA06CB5236AE0
5 changed files with 44 additions and 44 deletions

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG debian_version=slim-bookworm
ARG rust_version=1.81.0
ARG rust_version=1.85.0
FROM rust:${rust_version}-${debian_version}
ARG DEBIAN_FRONTEND=noninteractive

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG alpine_version=alpine3.19
ARG rust_version=1.81.0
ARG rust_version=1.85.0
FROM rust:${rust_version}-${alpine_version}
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"

View file

@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5
- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain stable -y
- run: cargo fmt --all -- --check
@ -68,7 +68,7 @@ jobs:
toolchain: [stable]
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@v4
- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain ${{ matrix.toolchain }} -y
@ -79,7 +79,7 @@ jobs:
shell: bash
- name: Cache Rust dependencies
uses: actions/cache@v4.2.0
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index
@ -109,7 +109,7 @@ jobs:
matrix:
os: [ubuntu-latest]
toolchain:
- "1.81" # MSRV (Minimum supported rust version)
- "1.85" # MSRV (Minimum supported rust version)
- stable
experimental: [false]
# Ignore failures in beta
@ -119,7 +119,7 @@ jobs:
experimental: true
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5
- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
@ -130,7 +130,7 @@ jobs:
shell: bash
- name: Cache Rust dependencies
uses: actions/cache@v4.2.0
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index
@ -164,11 +164,11 @@ jobs:
matrix:
os: [windows-latest]
toolchain:
- "1.81" # MSRV (Minimum supported rust version)
- "1.85" # MSRV (Minimum supported rust version)
- stable
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5
# hyper-rustls >=0.27 uses aws-lc as default backend which requires NASM to build
- name: Install NASM
@ -183,7 +183,7 @@ jobs:
shell: bash
- name: Cache Rust dependencies
uses: actions/cache@v4.2.0
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index
@ -215,11 +215,11 @@ jobs:
- aarch64-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
toolchain:
- "1.81" # MSRV (Minimum supported rust version)
- "1.85" # MSRV (Minimum supported rust version)
- stable
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@v5
- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
@ -230,7 +230,7 @@ jobs:
shell: bash
- name: Cache Rust dependencies
uses: actions/cache@v4.2.0
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index

View file

@ -43,7 +43,7 @@ RUN dpkg --add-architecture arm64 && \
pkg-config
ENV PATH="/root/.cargo/bin/:${PATH}"
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.81 -y && \
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.85 -y && \
rustup target add aarch64-unknown-linux-gnu && \
rustup target add arm-unknown-linux-gnueabi && \
rustup target add arm-unknown-linux-gnueabihf && \

View file

@ -22,7 +22,7 @@ RUN mkdir /sysroot && \
dpkg -x libasound2-dev*.deb /sysroot/
# Install rust.
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.81 -y
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.85 -y
ENV PATH="/root/.cargo/bin/:${PATH}"
RUN rustup target add arm-unknown-linux-gnueabihf
RUN mkdir /.cargo && \