Skip to content

Commit fd03f7e

Browse files
authored
Adding M1 Mac runner to conda deploy CI (#310)
* Adding MacOS M1 to conda deploy CI * removing target platform from conda config * adding complex channel to conda build CI
1 parent bfaccce commit fd03f7e

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
lines changed

.github/workflows/deploy_conda_package.yml

+34-7
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,36 @@ jobs:
2323
include:
2424
# real versions
2525
- OS: ubuntu-latest
26-
BUILD_DIR: linux-64
26+
TARGET: linux-64
27+
SCALAR: real
28+
29+
- OS: macos-latest
30+
TARGET: osx-64
31+
SCALAR: real
32+
33+
- OS: macos-14
34+
TARGET: osx-arm64
35+
SCALAR: real
2736

2837
# complex versions
38+
- OS: ubuntu-latest
39+
TARGET: linux-64
40+
SCALAR: complex
41+
2942
- OS: macos-latest
30-
BUILD_DIR: osx-64
43+
TARGET: osx-64
44+
SCALAR: complex
45+
46+
- OS: macos-14
47+
TARGET: osx-arm64
48+
SCALAR: complex
3149

32-
name: FUNtoFEM Conda Package Deployment (${{ matrix.OS }})
50+
name: FUNtoFEM Conda Package Deployment (${{ matrix.TARGET }}, ${{ matrix.SCALAR }})
3351

3452
# Recommended if you intend to make multiple deployments in quick succession.
3553
# This will kill any currently running CI from previous commits to the same branch
3654
concurrency:
37-
group: ci-${{ github.ref }}-${{ matrix.OS }}
55+
group: ci-${{ github.ref }}-${{ matrix.TARGET }}-${{ matrix.SCALAR }}
3856
cancel-in-progress: true
3957

4058
steps:
@@ -52,10 +70,20 @@ jobs:
5270
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
5371
- uses: actions/checkout@v2
5472
- name: Setup miniconda
73+
if: ${{ matrix.OS != 'macos-14' }}
74+
uses: conda-incubator/setup-miniconda@v2
75+
with:
76+
auto-update-conda: true
77+
python-version: 3.9
78+
79+
- name: Setup miniconda (MACOS-14)
80+
if: ${{ matrix.OS == 'macos-14' }}
5581
uses: conda-incubator/setup-miniconda@v2
5682
with:
83+
miniconda-version: "latest"
5784
auto-update-conda: true
5885
python-version: 3.9
86+
architecture: arm64
5987

6088
- name: Build FUNtoFEM package
6189
run: |
@@ -65,6 +93,5 @@ jobs:
6593
conda install anaconda-client conda-build conda-verify -q -y;
6694
conda config --set anaconda_upload no;
6795
cd ${F2F_DIR}/conda;
68-
conda build --no-include-recipe -c conda-forge -c "smdogroup/label/complex" -c smdogroup --output-folder . .;
69-
anaconda upload --label main ${{ matrix.BUILD_DIR }}/*real*.tar.bz2 --force;
70-
anaconda upload --label complex ${{ matrix.BUILD_DIR }}/*complex*.tar.bz2 --force;
96+
conda build --variants "{scalar: ${{ matrix.SCALAR }}}" -c conda-forge -c "smdogroup/label/complex" -c smdogroup --output-folder . .;
97+
anaconda upload --label $LABEL ${{ matrix.TARGET }}/*.tar.bz2 --force;

conda/conda_build_config.yaml

+1-8
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,4 @@ python:
1010
- 3.9
1111
- 3.10
1212
- 3.11
13-
- 3.12
14-
15-
target_platform:
16-
- osx-64 # [osx]
17-
#- osx-arm64 # [osx]
18-
- linux-64 # [linux64]
19-
#- linux-aarch64 # [linux64]
20-
#- linux-ppc64le # [linux64]
13+
- 3.12

0 commit comments

Comments
 (0)