Skip to content

Commit

Permalink
Upgrading to macos-12 for conda packaging, with installation of SDK 1…
Browse files Browse the repository at this point in the history
…0.10 for building
  • Loading branch information
vincent-noel committed Jun 14, 2023
1 parent f7b512b commit 7829e6b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 21 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/cmaboss-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
conda_cmaboss_macosx:
name: cMaBoSS Conda package
runs-on: macos-11
runs-on: macos-12
needs: cmaboss_macos

steps:
Expand All @@ -112,10 +112,14 @@ jobs:
conda update --all
conda install conda-build conda-verify
- name: Downgrading XCode to 11.7
- name: Installing MacOSX10.10 SDK
run: |
sudo xcode-select -s /Applications/Xcode_11.7.app/Contents/Developer
brew reinstall llvm
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
sudo tar xf MacOSX10.10.sdk.tar.xz -C /opt
echo "conda_build:" > ~/.condarc
echo " config_file: ~/.conda/conda_build_config.yaml" >> ~/.condarc
echo "CONDA_BUILD_SYSROOT:" > ~/.conda/conda_build_config.yaml
echo " - /opt/MacOSX10.10.sdk # [osx]" >> ~/.conda/conda_build_config.yaml
- name: Build cMaBoSS Anaconda package
run: |
Expand All @@ -134,7 +138,7 @@ jobs:

conda_cmaboss_conda_forge_macosx:
name: cMaBoSS Conda package (conda-forge)
runs-on: macos-11
runs-on: macos-12
needs: cmaboss_macos

steps:
Expand All @@ -148,6 +152,15 @@ jobs:
conda config --set channel_priority strict
conda update --all
conda install conda-build conda-verify
- name: Installing MacOSX10.10 SDK
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
sudo tar xf MacOSX10.10.sdk.tar.xz -C /opt
echo "conda_build:" > ~/.condarc
echo " config_file: ~/.conda/conda_build_config.yaml" >> ~/.condarc
echo "CONDA_BUILD_SYSROOT:" > ~/.conda/conda_build_config.yaml
echo " - /opt/MacOSX10.10.sdk # [osx]" >> ~/.conda/conda_build_config.yaml
- name: Build cMaBoSS Anaconda package
run: |
Expand All @@ -167,7 +180,7 @@ jobs:

cmaboss_conda_test_macosx:
name: cMaBoSS Anaconda package test
runs-on: macos-11
runs-on: macos-12
needs: conda_cmaboss_macosx

steps:
Expand Down Expand Up @@ -200,7 +213,7 @@ jobs:
cmaboss_conda_test_conda_forge_macosx:
name: cMaBoSS Anaconda package test (conda-forge)
runs-on: macos-11
runs-on: macos-12
needs: conda_cmaboss_conda_forge_macosx

steps:
Expand Down Expand Up @@ -235,7 +248,7 @@ jobs:
cmaboss_conda_publish_macosx:
name: cMaBoSS Anaconda package publication
runs-on: macos-11
runs-on: macos-12
needs: cmaboss_conda_test_macosx

steps:
Expand Down Expand Up @@ -268,7 +281,7 @@ jobs:
cmaboss_conda_publish_conda_forge_macosx:
name: cMaBoSS Anaconda package publication (conda-forge)
runs-on: macos-11
runs-on: macos-12
needs: cmaboss_conda_test_conda_forge_macosx

steps:
Expand Down
33 changes: 21 additions & 12 deletions .github/workflows/maboss-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,17 +304,21 @@ jobs:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1

- name: Downgrading XCode to 13.4.1
run: |
sudo xcode-select -s /Applications/Xcode_13.4.1.app/Contents/Developer
brew reinstall llvm
- name: Installing conda-build
run: |
conda update conda
conda update conda --all
conda install conda-build conda-verify
- name: Installing MacOSX10.10 SDK
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
sudo tar xf MacOSX10.10.sdk.tar.xz -C /opt
echo "conda_build:" > ~/.condarc
echo " config_file: ~/.conda/conda_build_config.yaml" >> ~/.condarc
echo "CONDA_BUILD_SYSROOT:" > ~/.conda/conda_build_config.yaml
echo " - /opt/MacOSX10.10.sdk # [osx]" >> ~/.conda/conda_build_config.yaml
- name: Build MaBoSS Anaconda package
run: |
conda build -c colomoto conda/maboss
Expand All @@ -335,18 +339,23 @@ jobs:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1

- name: Downgrading XCode to 13.4.1
run: |
sudo xcode-select -s /Applications/Xcode_13.4.1.app/Contents/Developer
brew reinstall llvm
- name: Installing conda-build
run: |
conda update conda
conda config --add channels conda-forge
conda config --set channel_priority strict
conda update conda --all
conda install conda-build conda-verify
- name: Installing MacOSX10.10 SDK
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
sudo tar xf MacOSX10.10.sdk.tar.xz -C /opt
echo "conda_build:" > ~/.condarc
echo " config_file: ~/.conda/conda_build_config.yaml" >> ~/.condarc
echo "CONDA_BUILD_SYSROOT:" > ~/.conda/conda_build_config.yaml
echo " - /opt/MacOSX10.10.sdk # [osx]" >> ~/.conda/conda_build_config.yaml
- name: Build MaBoSS Anaconda package
run: |
CUSTOM_BUILD_NUMBER=1 conda build -c colomoto conda/maboss
Expand Down Expand Up @@ -449,7 +458,7 @@ jobs:
maboss_conda_publish_macosx:
name: MaBoSS Anaconda package publication
runs-on: macos-11
runs-on: macos-12
needs: maboss_conda_test_macosx

steps:
Expand Down Expand Up @@ -483,7 +492,7 @@ jobs:
maboss_conda_publish_conda_forge_macosx:
name: MaBoSS Anaconda package publication (conda-forge)
runs-on: macos-11
runs-on: macos-12
needs: maboss_conda_test_conda_forge_macosx

steps:
Expand Down

0 comments on commit 7829e6b

Please sign in to comment.