diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index 64c63d1..b84b087 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -31,6 +31,12 @@ jobs: python-version: [3.9] steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 1024 + temp-reserve-mb: 1024 + swap-size-mb: 4096 - name: Checkout uses: actions/checkout@v2 - name: XCode @@ -83,17 +89,18 @@ jobs: if [[ "${{matrix.os}}" == "ubuntu-latest" ]]; then #conda install -c conda-forge boa -n base - #conda mambabuild --no-build-id --python=${{matrix.python-version}} conda_recipe/xspec-modelsonly + conda build --python=${{matrix.python-version}} conda_recipe/xspec-modelsonly else - curl -LO -z MacOSX10.9.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz - if [[ $? -ne 0 ]]; then - echo "macOS 10.9 SDK download failed" - fi - sudo tar -C /opt -xf MacOSX10.9.sdk.tar.xz + #curl -LO -z MacOSX10.9.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz + #if [[ $? -ne 0 ]]; then + #echo "macOS 10.9 SDK download failed" + #fi + #sudo tar -C /opt -xf MacOSX10.9.sdk.tar.xz #conda install -c conda-forge clang_osx-64 clangxx_osx-64 gfortran_osx-64 + conda build --python=${{matrix.python-version}} conda_recipe/xspec-modelsonly fi diff --git a/build_local.sh b/build_local.sh index ddd0ca1..1766f58 100755 --- a/build_local.sh +++ b/build_local.sh @@ -7,6 +7,7 @@ TRAVIS_PYTHON_VERSION=3.9 TRAVIS_EVENT_TYPE="push" #TRAVIS_BRANCH="master" TRAVIS_BRANCH="no_master" + if [[ "$OSTYPE" == "linux-gnu" ]]; then # Linux @@ -23,11 +24,12 @@ elif [[ "$OSTYPE" == darwin* ]]; then #compilers="clang_osx-64 clangxx_osx-64 gfortran_osx-64" #Download the macOS 10.9 SDK to the CONDA_BUILD_SYSROOT location for the Conda Compilers to work - curl -LO -z MacOSX10.9.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz - if [[ $? -ne 0 ]]; then - echo "macOS 10.9 SDK download failed" - fi - sudo tar -C /opt -xf MacOSX10.9.sdk.tar.xz + #curl -LO -z MacOSX10.9.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz + #if [[ $? -ne 0 ]]; then + #echo "macOS 10.9 SDK download failed" + #fi + #sudo tar -C /opt -xf MacOSX10.9.sdk.tar.xz + elif [[ "$OSTYPE" == "cygwin" ]]; then # POSIX compatibility layer and Linux environment emulation for Windows