fix: revert cargo-zigbuild (#664)
* Revert "fix(release): install openssl headers (#662)" This reverts commit 6aaaeda003599c7e64492c11e2a63e7c5efaf98a. * Revert "fix(release): setup zig for cargo-zigbuild (#661)" This reverts commit e3e5785a1a9c257083e6f9f86cdb66486a1d6b47. * Revert "feat(release): use cargo-zigbuild to build for glibc 2.17 (#660)" This reverts commit 2ff2456fcb8af8fe8aff36278014d6e42fe6a354.
This commit is contained in:
parent
6aaaeda003
commit
d28fece472
35
.github/workflows/release.yaml
vendored
35
.github/workflows/release.yaml
vendored
@ -56,6 +56,8 @@ 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
|
||||||
|
docker_platform: linux/amd64
|
||||||
|
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
|
||||||
@ -83,35 +85,28 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
if: ${{ matrix.config.container == null }}
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
|
if: ${{ matrix.config.container == null }}
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.config.rust_target }}
|
targets: ${{ matrix.config.rust_target }}
|
||||||
toolchain: 1.80.0
|
toolchain: 1.80.0
|
||||||
|
|
||||||
- uses: goto-bus-stop/setup-zig@v2
|
|
||||||
if: ${{ matrix.config.os_name == 'linux' }}
|
|
||||||
|
|
||||||
- name: Install cargo-zigbuild
|
|
||||||
if: ${{ matrix.config.os_name == 'linux' }}
|
|
||||||
uses: baptiste0928/cargo-install@v3
|
|
||||||
with:
|
|
||||||
crate: cargo-zigbuild
|
|
||||||
|
|
||||||
- name: Build all crates
|
- name: Build all crates
|
||||||
if: ${{ matrix.config.os_name != 'linux' }}
|
if: ${{ matrix.config.container == null }}
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --features ${{ matrix.feature }}
|
cargo build --release --features ${{ matrix.feature }}
|
||||||
|
|
||||||
- name: Install OpenSSL headers
|
- name: Build all crates with glibc 2.17 # for glibc 2.17
|
||||||
if: ${{ matrix.config.os_name == 'linux' }}
|
if: ${{ matrix.config.container != null }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y pkg-config libssl-dev
|
# sudo apt-get install -y qemu qemu-user-static
|
||||||
|
docker run \
|
||||||
- name: Build all crates with glibc 2.17
|
--rm \
|
||||||
if: ${{ matrix.config.os_name == 'linux' }}
|
-v $(pwd):/workspace \
|
||||||
run: |
|
-w /workspace \
|
||||||
cargo zigbuild --target ${{ matrix.config.rust_target }}.2.17 --release --features ${{ matrix.feature }}
|
--platform ${{ matrix.config.docker_platform }} \
|
||||||
|
${{ matrix.config.container }} \
|
||||||
|
bash -c "yum install -y openssl-devel && curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && . /root/.cargo/env && cargo build --release --features ${{ matrix.feature }}"
|
||||||
|
|
||||||
- name: Handle binaries
|
- name: Handle binaries
|
||||||
if: ${{ matrix.config.os_name != 'windows' }}
|
if: ${{ matrix.config.os_name != 'windows' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user