-
Notifications
You must be signed in to change notification settings - Fork 196
39 lines (30 loc) · 1.24 KB
/
package-macos-anaconda.yml
File metadata and controls
39 lines (30 loc) · 1.24 KB
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
name: package-macos-anaconda
on:
release:
types: [created]
jobs:
package:
runs-on: macos-latest
steps:
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Install conda-build
run: conda install -c conda-forge -y conda-build
- name: fetch MacOSX 10.11 SDK
run: curl -L https://github.com/phracker/MacOSX-SDKs/releases/download/MacOSX10.11.sdk/MacOSX10.11.sdk.tar.xz | sudo tar xf - -C /opt/
- name: fetch recipe
run: |
git clone https://github.com/MRtrix3/conda-build.git
mv conda-build/* .
{ echo "CONDA_BUILD_SYSROOT:"; echo " - /opt/MacOSX10.11.sdk # [osx]"; } > conda_build_config.yaml
- name: build package
run: CONDA="$CONDA" ./run.sh ${GITHUB_REF#refs/*/} ${GITHUB_REPOSITORY%/*} conda-macos
# - name: upload package
# run: $CONDA/bin/anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u MRtrix3 $(sudo $CONDA/bin/conda build conda-build/ --output)
- name: Upload package to GitHub Release
uses: AButler/upload-release-assets@v2.0
with:
files: "*.conda*"
repo-token: ${{ secrets.GITHUB_TOKEN }}