-
Notifications
You must be signed in to change notification settings - Fork 49
88 lines (71 loc) · 2.38 KB
/
ci-osx-arm64-conda.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI - OSX ARM64 - Conda
on:
push:
pull_request:
env:
PYTHONPATH: ${CONDA_PREFIX}/lib/python3.8/site-packages/
jobs:
build-with-conda:
name: '[conda:${{ matrix.os }}:${{ matrix.build_type }}]'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
name: [macos-m1]
include:
- name: macos-m1
os: self-hosted-arm64
steps:
- uses: actions/checkout@v2
# not working due to The node12 is not supported on macOS ARM64 platform. Use node16 instead.
# open issue https://github.com/conda-incubator/setup-miniconda/issues/247
# - uses: conda-incubator/setup-miniconda@v2
# with:
# activate-environment: proxarm
- name: Environment
shell: bash -l {0}
run: |
echo $CONDA_PREFIX
conda info
conda list
env
- name: Configure
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE
git submodule update --init
mkdir build
cd build
cmake .. -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_PYTHON_INTERFACE:BOOL=ON -DBUILD_WITH_VECTORIZATION_SUPPORT:BOOL=OFF -DPYTHON_SITELIB=${CONDA_PREFIX}/Lib/site-packages -DPYTHON_EXECUTABLE=${CONDA_PYTHON_EXE} -DBUILD_DOCUMENTATION:BOOL=ON -DINSTALL_DOCUMENTATION:BOOL=ON -DTEST_JULIA_INTERFACE:BOOL=OFF
- name: Build
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/build
cmake --build . --config ${{ matrix.build_type }} -v
- name: Install
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/build
cmake --install . --config ${{ matrix.build_type }}
- name: Test
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/build
ctest --output-on-failure -C ${{ matrix.build_type }}
- name: Uninstall [Conda]
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/build
cmake --build . --config ${{ matrix.build_type }} --target uninstall
check:
if: always()
name: check-ci-osx-arm64-conda
needs:
- build-with-conda
runs-on: Ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}