File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ jobs:
3939 fail-fast : false
4040 matrix :
4141 platform :
42- # Linux binary
43- - os_name : Linux-x86_64
42+ # Linux binary (manylinux2014 - glibc 2.17+, compatible with most distros)
43+ - os_name : Linux-manylinux- x86_64
4444 os : ubuntu-latest
4545 target : x86_64-unknown-linux-gnu
4646 bin : ocli
47- name : ocli-linux -x86_64.zip
47+ name : ocli-manylinux -x86_64.zip
4848 squash : true
49+ docker_image : ghcr.io/pypa/manylinux2014_x86_64
4950 # macOS binary (ARM)
5051 - os_name : macOS-aarch64
5152 os : macOS-latest
5556 squash : false
5657
5758 runs-on : ${{ matrix.platform.os }}
59+ container :
60+ image : ${{ matrix.platform.docker_image }}
61+ options : --user root
5862 steps :
5963 - name : Checkout
6064 uses : actions/checkout@v5
@@ -67,11 +71,10 @@ jobs:
6771 with :
6872 prefix-key : " v0-rust"
6973 cache-workspace-crates : " true"
70- - name : Install build dependencies (Linux)
74+ - name : Install build dependencies
7175 run : |
72- sudo apt-get update && sudo apt-get install -y zip
73- if : contains(matrix.platform.os, 'ubuntu')
74- - name : Build binary
76+ yum install -y zip glibc-static
77+ - name : Build binary (manylinux compatible)
7578 run : |
7679 cargo build --locked --release --target ${{ matrix.platform.target }}
7780 - name : Strip binary
You can’t perform that action at this time.
0 commit comments