Skip to content
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
fetch-depth: 1

- uses: chia-network/actions/setup-python@main
name: Install Python 3.9
name: Install Python 3.12
with:
python-version: 3.9
python-version: 3.12

- name: Update pip
run: |
Expand All @@ -50,9 +50,9 @@ jobs:
fetch-depth: 1

- uses: chia-network/actions/setup-python@main
name: Install Python 3.9
name: Install Python 3.12
with:
python-version: 3.9
python-version: 3.12

- name: Update pip
run: |
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-arm64-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,16 @@ jobs:
run: |
docker run --rm \
-v ${{ github.workspace }}:/ws --workdir=/ws \
quay.io/pypa/manylinux_2_28_aarch64 \
ghcr.io/chia-network/build-images/centos-pypa-rust-aarch64 \
bash -exc '\
echo $PATH && \
curl -L https://sh.rustup.rs > rustup-init.sh && \
sh rustup-init.sh -y && \
yum -y install perl-IPC-Cmd && \
yum -y install openssl-devel && \
yum -y --disablerepo=epel install openssl-devel && \
source $HOME/.cargo/env && \
rustup target add aarch64-unknown-linux-musl && \
rm -rf venv && \
export PATH=/opt/python/cp310-cp310/bin/:$PATH && \
export PATH=/opt/python/cp39-cp39/bin/:$PATH && \
export PATH=/opt/python/cp38-cp38/bin/:$PATH && \
/opt/python/cp38-cp38/bin/python -m venv venv && \
/opt/python/cp310-cp310/bin/python -m venv venv && \
if [ ! -f "activate" ]; then ln -s venv/bin/activate; fi && \
. ./activate && \
pip install maturin && \
Expand All @@ -61,7 +57,7 @@ jobs:
name: wheels
path: target/wheels/

- name: Install Twine
- name: Install setuptools_rust
run: |
if [ ! -f "venv" ]; then sudo rm -rf venv; fi
sudo apt-get install python3-venv python3-pip -y
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-15-intel, ubuntu-latest, windows-latest]
python: [3.8]
python: ["3.10"]

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -61,23 +61,17 @@ jobs:
run: |
docker run --rm \
-v ${{ github.workspace }}:/ws --workdir=/ws \
quay.io/pypa/manylinux_2_28_x86_64 \
ghcr.io/chia-network/build-images/centos-pypa-rust-x86_64 \
bash -exc '\
curl -L https://sh.rustup.rs > rustup-init.sh && \
sh rustup-init.sh -y && \
yum -y install perl-IPC-Cmd && \
yum -y --disablerepo=epel install openssl-devel && \
source $HOME/.cargo/env && \
rustup target add x86_64-unknown-linux-musl && \
PY_VERSION=${{ matrix.python }}
PY_VERSION=${PY_VERSION/.} && \
echo "Python version with dot removed is $PY_VERSION" && \
if [ "$PY_VERSION" = "38" ]; \
then export SCND_VERSION="${PY_VERSION}m"; \
else export SCND_VERSION="$PY_VERSION"; fi && \
echo "Exporting path /opt/python/cp$PY_VERSION-cp$SCND_VERSION/bin" && \
export PATH=/opt/python/cp$PY_VERSION-cp$SCND_VERSION/bin/:$PATH && \
/opt/python/cp38-cp38/bin/python -m venv /venv && \
export PATH=/opt/python/cp$PY_VERSION-cp$PY_VERSION/bin/:$PATH && \
python -m venv /venv && \
. /venv/bin/activate && \
pip install --upgrade pip && \
pip install maturin && \
Expand Down Expand Up @@ -145,7 +139,7 @@ jobs:
- name: Install python
uses: Chia-Network/actions/setup-python@main
with:
python-version: "3.10"
python-version: "3.12"

- name: Download artifacts
uses: actions/download-artifact@v6
Expand Down Expand Up @@ -184,7 +178,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-15-intel, ubuntu-latest]
python: [3.8]
python: ["3.10"]
steps:
- uses: actions/checkout@v5
with:
Expand Down Expand Up @@ -216,14 +210,19 @@ jobs:
fail-fast: false
matrix:
os: [macos-15-intel, ubuntu-latest, windows-latest]
python: [3.8]
python: ["3.10"]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up rusts
uses: dtolnay/[email protected]

- uses: chia-network/actions/setup-python@main
name: Install Python ${{ matrix.python }}
with:
python-version: ${{ matrix.python }}

- name: build
run: cargo build --workspace --exclude clvm_rs-fuzz

Expand Down
2 changes: 1 addition & 1 deletion wheel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/lib.rs"

[dependencies]
clvmr = { workspace = true }
pyo3 = { workspace = true, features = ["abi3-py38", "extension-module"] }
pyo3 = { workspace = true, features = ["abi3-py310", "extension-module"] }

[features]
openssl = ["clvmr/openssl"]
Loading