-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.39 KB
/
conda_build_mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Mac
# syntax https://help.github.com/en/articles/workflow-syntax-for-github-actions
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
conda:
name: conda-build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Download MacOSX 10.9 SDK
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz
tar -xf MacOSX10.9.sdk.tar.xz
echo 'CONDA_BUILD_SYSROOT:' > conda_build_config.yaml
echo " - $GITHUB_WORKSPACE/MacOSX10.9.sdk" >> conda_build_config.yaml
# For :
cat conda_build_config.yaml
- name: Install Conda
run: |
brew cask install miniconda
echo "shell: ${SHELL}"
conda init "$(basename ${SHELL})"
- name: Deploy Conda package
run: |
# We must use a new shell (new step) for Conda to take effect.
source ~/.bash_profile
echo "path: $PATH"
conda create -n packaging --channel conda-forge conda-build anaconda-client conda-verify
conda activate packaging
conda config --set anaconda_upload yes
# --hostname github-actions-mac
anaconda login --hostname github-actions-mac-$RANDOM --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
conda-build --channel conda-forge --user opensim-org .
anaconda logout