fix(release): manually install Rust to support lower versions of glibc (#643)
This commit is contained in:
parent
1fca51917e
commit
9387c8ad45
13
.github/workflows/release.yaml
vendored
13
.github/workflows/release.yaml
vendored
@ -56,12 +56,12 @@ jobs:
|
|||||||
os_name: linux
|
os_name: linux
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
rust_target: x86_64-unknown-linux-gnu
|
rust_target: x86_64-unknown-linux-gnu
|
||||||
container: quay.io/pypa/manylinux2014_x86_64
|
container: quay.io/pypa/manylinux2014_x86_64 # for glibc 2.17
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
os_name: linux
|
os_name: linux
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
rust_target: aarch64-unknown-linux-gnu
|
rust_target: aarch64-unknown-linux-gnu
|
||||||
container: quay.io/pypa/manylinux2014_aarch64
|
container: quay.io/pypa/manylinux2014_aarch64 # for glibc 2.17
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
os_name: darwin
|
os_name: darwin
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
@ -83,11 +83,20 @@ jobs:
|
|||||||
container: ${{ matrix.config.container }}
|
container: ${{ matrix.config.container }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
if: ${{ matrix.config.os_name != 'linux' }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
if: ${{ matrix.config.os_name != 'linux' }}
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
|
if: ${{ matrix.config.os_name != 'linux' }}
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.config.rust_target }}
|
targets: ${{ matrix.config.rust_target }}
|
||||||
toolchain: 1.80.0
|
toolchain: 1.80.0
|
||||||
|
- uses: actions/checkout@v1 # for glibc 2.17
|
||||||
|
if: ${{ matrix.config.os_name == 'linux' }}
|
||||||
|
- name: Install rust # for glibc 2.17
|
||||||
|
if: ${{ matrix.config.os_name == 'linux' }}
|
||||||
|
run: |
|
||||||
|
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||||
- name: Build all crates
|
- name: Build all crates
|
||||||
run: cargo build --release --features ${{ matrix.feature }}
|
run: cargo build --release --features ${{ matrix.feature }}
|
||||||
- name: Handle binaries
|
- name: Handle binaries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user