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:
parent
1dcd041070
commit
648c9e30ea
5 changed files with 44 additions and 44 deletions
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
ARG debian_version=slim-bookworm
|
ARG debian_version=slim-bookworm
|
||||||
ARG rust_version=1.81.0
|
ARG rust_version=1.85.0
|
||||||
FROM rust:${rust_version}-${debian_version}
|
FROM rust:${rust_version}-${debian_version}
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
ARG alpine_version=alpine3.19
|
ARG alpine_version=alpine3.19
|
||||||
ARG rust_version=1.81.0
|
ARG rust_version=1.85.0
|
||||||
FROM rust:${rust_version}-${alpine_version}
|
FROM rust:${rust_version}-${alpine_version}
|
||||||
|
|
||||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
||||||
|
|
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
@ -51,7 +51,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v5
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain stable -y
|
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain stable -y
|
||||||
- run: cargo fmt --all -- --check
|
- run: cargo fmt --all -- --check
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
toolchain: [stable]
|
toolchain: [stable]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain ${{ matrix.toolchain }} -y
|
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile default --default-toolchain ${{ matrix.toolchain }} -y
|
||||||
|
@ -79,7 +79,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache Rust dependencies
|
- name: Cache Rust dependencies
|
||||||
uses: actions/cache@v4.2.0
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index
|
~/.cargo/registry/index
|
||||||
|
@ -109,7 +109,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.81" # MSRV (Minimum supported rust version)
|
- "1.85" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
experimental: [false]
|
experimental: [false]
|
||||||
# Ignore failures in beta
|
# Ignore failures in beta
|
||||||
|
@ -119,7 +119,7 @@ jobs:
|
||||||
experimental: true
|
experimental: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
|
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
|
||||||
|
@ -130,7 +130,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache Rust dependencies
|
- name: Cache Rust dependencies
|
||||||
uses: actions/cache@v4.2.0
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index
|
~/.cargo/registry/index
|
||||||
|
@ -164,11 +164,11 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest]
|
os: [windows-latest]
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.81" # MSRV (Minimum supported rust version)
|
- "1.85" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- 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
|
# hyper-rustls >=0.27 uses aws-lc as default backend which requires NASM to build
|
||||||
- name: Install NASM
|
- name: Install NASM
|
||||||
|
@ -183,7 +183,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache Rust dependencies
|
- name: Cache Rust dependencies
|
||||||
uses: actions/cache@v4.2.0
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index
|
~/.cargo/registry/index
|
||||||
|
@ -215,11 +215,11 @@ jobs:
|
||||||
- aarch64-unknown-linux-gnu
|
- aarch64-unknown-linux-gnu
|
||||||
- riscv64gc-unknown-linux-gnu
|
- riscv64gc-unknown-linux-gnu
|
||||||
toolchain:
|
toolchain:
|
||||||
- "1.81" # MSRV (Minimum supported rust version)
|
- "1.85" # MSRV (Minimum supported rust version)
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
|
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
|
||||||
|
@ -230,7 +230,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache Rust dependencies
|
- name: Cache Rust dependencies
|
||||||
uses: actions/cache@v4.2.0
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index
|
~/.cargo/registry/index
|
||||||
|
|
|
@ -43,7 +43,7 @@ RUN dpkg --add-architecture arm64 && \
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
||||||
ENV PATH="/root/.cargo/bin/:${PATH}"
|
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 aarch64-unknown-linux-gnu && \
|
||||||
rustup target add arm-unknown-linux-gnueabi && \
|
rustup target add arm-unknown-linux-gnueabi && \
|
||||||
rustup target add arm-unknown-linux-gnueabihf && \
|
rustup target add arm-unknown-linux-gnueabihf && \
|
||||||
|
|
|
@ -22,7 +22,7 @@ RUN mkdir /sysroot && \
|
||||||
dpkg -x libasound2-dev*.deb /sysroot/
|
dpkg -x libasound2-dev*.deb /sysroot/
|
||||||
|
|
||||||
# Install rust.
|
# 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}"
|
ENV PATH="/root/.cargo/bin/:${PATH}"
|
||||||
RUN rustup target add arm-unknown-linux-gnueabihf
|
RUN rustup target add arm-unknown-linux-gnueabihf
|
||||||
RUN mkdir /.cargo && \
|
RUN mkdir /.cargo && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue