@@ -41,43 +41,25 @@ jobs:
4141 with :
4242 python-version : 3.11
4343
44- - name : Update pip
44+ - uses : chia-network/actions/create-venv@main
45+ id : create-venv
46+
47+ - uses : chia-network/actions/activate-venv@main
48+ with :
49+ directories : ${{ steps.create-venv.outputs.activate-venv-directories }}
50+
51+ - name : Update pip and dependencies
4552 run : |
46- python -m pip install --upgrade pip
53+ python -m pip install --upgrade pip maturin==1.10.2
4754
4855 - name : Set up rust
4956 uses : actions-rs/toolchain@v1
5057 with :
5158 toolchain : stable
5259
53- - name : Install dependencies
54- run : |
55- python -m pip install maturin==1.7.0
56-
5760 - name : Build Linux in manylinux_2_28 with maturin on Python ${{ matrix.python }}
5861 run : |
59- podman run --rm=true \
60- -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
61- ghcr.io/chia-network/build-images/centos-pypa-rust-x86_64 \
62- bash -exc '\
63- yum -y install libc6 openssl-devel && \
64- source $HOME/.cargo/env && \
65- rustup target add x86_64-unknown-linux-musl && \
66- rm -rf venv && \
67- PY_VERSION=${{ matrix.python }}
68- PY_VERSION=${PY_VERSION/.} && \
69- echo "Python version with dot removed is $PY_VERSION" && \
70- if [ "$PY_VERSION" = "37" ]; \
71- then export SCND_VERSION="${PY_VERSION}m"; \
72- else export SCND_VERSION="$PY_VERSION"; fi && \
73- echo "Exporting path /opt/python/cp$PY_VERSION-cp$SCND_VERSION/bin" && \
74- export PATH=/opt/python/cp$PY_VERSION-cp$SCND_VERSION/bin/:$PATH && \
75- /opt/python/cp38-cp38/bin/python -m venv venv && \
76- if [ ! -f "activate" ]; then ln -s venv/bin/activate; fi && \
77- . ./activate && \
78- pip install --upgrade pip
79- '
80- docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.8.3 build --release --strip --manylinux 2_28
62+ docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:v1.10.2 build --release --strip --manylinux 2_28
8163 # Refresh in case any ownerships changed.
8264 mv target target.docker && cp -r target.docker target
8365 # Ensure an empty .cargo-lock file exists.
@@ -86,23 +68,20 @@ jobs:
8668 - name : Install chialisp wheel
8769 if : ${{ !startsWith(matrix.os, 'windows') }}
8870 run : |
89- . ./activate
9071 ls target/wheels/
9172 # this mess puts the name of the `.whl` file into `$WHEEL_PATH`
9273 # remove the dot, use the `glob` lib to grab the file from the directory
93- export WHEEL_PATH=$(echo ${{ matrix.python }} | python -c 'DOTLESS=input().replace(".", ""); import glob; print(" ".join(filter(lambda x: "musl" not in x, glob.glob("target/wheels/chialisp-*-cp*-*.whl"))))' )
74+ export WHEEL_PATH=$(echo "3.10" | python -c 'DOTLESS=input().replace(".", ""); import glob; print(" ".join(filter(lambda x: "musl" not in x, glob.glob("target/wheels/chialisp-*-cp*-*.whl"))))' )
9475 echo ${WHEEL_PATH}
9576 pip install ${WHEEL_PATH}
9677
9778 - name : Install other wheels
9879 run : |
99- . ./activate
10080 python -m pip install pytest
10181 python -m pip install blspy
10282
10383 - name : install clvm & clvm_tools
10484 run : |
105- . ./activate
10685 git clone https://github.com/Chia-Network/clvm.git --branch=main --single-branch
10786 python -m pip install ./clvm
10887
11998
12099 - name : Run game referee test
121100 run : |
122- . ./activate
123101 cp support/test-game-referee.sh .
124102 sh test-game-referee.sh resources/tests/game-referee-in-cl23
125103 sh test-game-referee.sh resources/tests/game-referee-in-cl21
0 commit comments