Skip to content

Commit

Permalink
Using new action to increase disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
omodei committed Aug 18, 2022
1 parent 80cf498 commit ef015c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions build_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ef015c8

Please sign in to comment.