File tree Expand file tree Collapse file tree 6 files changed +35
-19
lines changed
Expand file tree Collapse file tree 6 files changed +35
-19
lines changed Original file line number Diff line number Diff line change 4545 python -m pip install maturin
4646 rustup target add x86_64-unknown-linux-musl
4747
48+ - name : Install GMP
49+ if : startsWith(matrix.os, 'ubuntu')
50+ run : |
51+ sudo apt-get install lzip -y
52+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz | lzip -dc | tar x && \
53+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
54+ make -j 6 && sudo make install && cd .. && rm -rf gmp-6.2.1
55+
4856 - name : Build Windows
4957 if : startsWith(matrix.os, 'windows')
5058 run : |
@@ -114,11 +122,12 @@ jobs:
114122
115123 - name : Install dependencies
116124 run : |
125+ sudo apt-get install lzip -y
126+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz | lzip -dc | tar x && \
127+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
128+ make -j 6 && sudo make install && cd .. && rm -rf gmp-6.2.1
117129 python -m pip install maturin
118130 rustup target add x86_64-unknown-linux-musl
119- sudo apt install libgmp3-dev
120- ls -la /usr/lib64
121- ls -la /usr/lib
122131
123132 - name : Build
124133 env :
Original file line number Diff line number Diff line change 4242 curl -L https://sh.rustup.rs > rustup-init.sh && \
4343 sh rustup-init.sh -y && \
4444 yum -y install openssl-devel && \
45- yum -y install gmp && \
46- ls -la /usr/lib64/ && \
45+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2 | tar -xj && \
46+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
47+ make -j 6 && sudo make install && cd .. && rm -rf gmp-6.2.1 && \
4748 source $HOME/.cargo/env && \
4849 rustup target add aarch64-unknown-linux-musl && \
4950 rm -rf venv && \
Original file line number Diff line number Diff line change 2323 with :
2424 fetch-depth : 0
2525
26+ - name : Install GMP
27+ run : |
28+ sudo apt-get install lzip -y
29+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz | lzip -dc | tar x && \
30+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
31+ make -j 6 && sudo make install && cd .. && rm -rf gmp-6.2.1
32+
2633 - name : Set up rusts
2734 uses : actions-rs/toolchain@v1
2835 with :
Original file line number Diff line number Diff line change 5353 . ./venv/bin/activate
5454 export PATH=~/.cargo/bin:$PATH
5555 arch -arm64 pip install maturin
56- arch -arm64 maturin build --no-sdist -i python --release --strip --cargo-extra-args="--features=openssl"
56+ arch -arm64 maturin build --no-sdist -i python3 --release --strip --cargo-extra-args="--features=openssl"
5757
5858 - name : Install clvm_rs wheel
5959 run : |
Original file line number Diff line number Diff line change 7171 curl -L https://sh.rustup.rs > rustup-init.sh && \
7272 sh rustup-init.sh -y && \
7373 yum -y install openssl-devel && \
74- yum -y install gmp && \
75- ls -la /usr/lib64 && \
74+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2 | tar -xj && \
75+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
76+ make -j 6 && /usr/bin/sudo make install && cd .. && rm -rf gmp-6.2.1 && \
7677 source $HOME/.cargo/env && \
7778 rustup target add x86_64-unknown-linux-musl && \
7879 rm -rf venv && \
@@ -245,6 +246,12 @@ jobs:
245246 - uses : actions/checkout@v2
246247 with :
247248 fetch-depth : 1
249+ - name : Install GMP
250+ run : |
251+ sudo apt-get install lzip -y
252+ curl -L https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz | lzip -dc | tar x && \
253+ cd gmp-6.2.1 && ./configure --enable-fat --with-pic && \
254+ make -j 6 && sudo make install && cd .. && rm -rf gmp-6.2.1
248255 - name : Install rust
249256 uses : actions-rs/toolchain@v1
250257 with :
Original file line number Diff line number Diff line change 11fn main ( ) {
2- #[ cfg( target_os = "windows" ) ]
3- {
2+ if cfg ! ( windows) {
43 println ! ( "cargo:rustc-link-lib=mpir" ) ;
54 println ! ( "cargo:rustc-link-search=mpir_gc_x64" ) ;
6- }
7- #[ cfg( target_os = "linux" ) ]
8- {
9- println ! ( "cargo:rustc-link-lib=gmp" ) ;
10- println ! ( "cargo:rustc-link-search=/usr/lib64" ) ;
11- println ! ( "cargo:rustc-link-search=/usr/lib" ) ;
12- }
13- #[ cfg( target_os = "macos" ) ]
14- {
5+ } else {
156 println ! ( "cargo:rustc-link-lib=gmp" ) ;
7+ println ! ( "cargo:rustc-link-search=/usr/local/lib" ) ;
168 println ! ( "cargo:rustc-link-search=/opt/homebrew/lib" ) ;
179 }
1810}
You can’t perform that action at this time.
0 commit comments