Skip to content

Commit

Permalink
Try building with our own minimal maturin container
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Apr 16, 2024
1 parent 317a06f commit 6f7be65
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build minimal maturin docker container
run:
docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
before-script-linux: |
# If we're running on rhel centos, install needed packages.
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# If we're running on i686 we need to symlink libatomic
# in order to build openssl with -latomic flag.
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
fi
container: maturin-release:latest
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -83,12 +73,16 @@ jobs:
with:
python-version: '3.10'
architecture: ${{ matrix.platform.target }}
- name: Build minimal maturin docker container
run:
docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
container: maturin-release:latest
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -109,12 +103,16 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build minimal maturin docker container
run:
docker build -t maturin-release:latest -f synapse_auto_compressor/docker/release.Dockerfile .
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
container: maturin-release:latest
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 6f7be65

Please sign in to comment.