File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Library Cache Builder
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [ main, symengine ]
66 workflow_dispatch :
77
88jobs :
@@ -75,19 +75,17 @@ jobs:
7575 tar -czf ${{ runner.temp }}/libxml2-${{ matrix.name }}.tar.gz -C ${{ runner.temp }} libxml2
7676 - name : Build and archive GMP (Windows)
7777 if : ${{ runner.os == 'Windows' }}
78- shell : bash
7978 run : |
80- $VCPKG_INSTALLATION_ROOT/vcpkg install gmp:x64-windows-release
81- RUNNER_TEMP_UNIX=$(echo "${{ runner.temp }}" | sed 's|C:|/c|' | sed 's|D:|/d|' | sed 's|\\|/|g')
82- tar -czf $RUNNER_TEMP_UNIX/gmp-${{ matrix.name }}.tar.gz -C $VCPKG_INSTALLATION_ROOT/installed/x64-windows .
79+ & $env:VCPKG_INSTALLATION_ROOT/vcpkg install gmp:x64-windows-release
80+ tar -czf $env:RUNNER_TEMP/gmp-${{ matrix.name }}.tar.gz -C $env:VCPKG_INSTALLATION_ROOT/installed/x64-windows-release .
8381 - name : Build and archive GMP (Linux/macOS/WASM)
8482 if : ${{ runner.os != 'Windows' }}
8583 run : |
8684 curl -Lo gmp.tar.xz https://ftp.gnu.org/gnu/gmp/gmp-${{ env.GMP_VERSION }}.tar.xz
8785 tar -xf gmp.tar.xz
8886 cd gmp-${{ env.GMP_VERSION }}
8987 ${{ matrix.emconfigure }} ./configure --prefix=${{ runner.temp }}/gmp --enable-cxx --disable-shared --disable-assembly HOST_CC=clang CFLAGS=-fPIC
90- ${{ matrix.emmake }} make -j$(sysctl -n hw.ncpu)
88+ ${{ matrix.emmake }} make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4 )
9189 ${{ matrix.emmake }} make install
9290 tar -czf ${{ runner.temp }}/gmp-${{ matrix.name }}.tar.gz -C ${{ runner.temp }} gmp
9391 - name : Build and archive SymEngine
You can’t perform that action at this time.
0 commit comments