File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI - OSX ARM64 - Conda
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ env :
8+ PYTHONPATH : ${CONDA_PREFIX}/lib/python3.8/site-packages/
9+
10+ jobs :
11+ build-with-conda :
12+ name : ' [conda:${{ matrix.os }}:${{ matrix.build_type }}]'
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ build_type : [Release, Debug]
18+ name : [macos-m1]
19+
20+ include :
21+ - name : macos-m1
22+ os : self-hosted-arm64
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+
27+ # not working due to The node12 is not supported on macOS ARM64 platform. Use node16 instead.
28+ # open issue https://github.com/conda-incubator/setup-miniconda/issues/247
29+ # - uses: conda-incubator/setup-miniconda@v2
30+ # with:
31+ # activate-environment: proxarm
32+
33+ - name : Environment
34+ shell : bash -l {0}
35+ run : |
36+ echo $CONDA_PREFIX
37+ conda info
38+ conda list
39+ env
40+
41+ - name : Configure
42+ shell : bash -l {0}
43+ run : |
44+ cd $GITHUB_WORKSPACE
45+ git submodule update --init
46+ mkdir build
47+ cd build
48+ 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} -DINSTALL_DOCUMENTATION:BOOL=ON -DTEST_JULIA_INTERFACE:BOOL=OFF
49+
50+ - name : Build
51+ shell : bash -l {0}
52+ run : |
53+ cd $GITHUB_WORKSPACE/build
54+ cmake --build . --config ${{ matrix.build_type }} -v
55+
56+ - name : Install
57+ shell : bash -l {0}
58+ run : |
59+ cd $GITHUB_WORKSPACE/build
60+ cmake --install . --config ${{ matrix.build_type }}
61+
62+
63+ - name : Test
64+ shell : bash -l {0}
65+ run : |
66+ cd $GITHUB_WORKSPACE/build
67+ ctest --output-on-failure -C ${{ matrix.build_type }}
68+
69+
70+ - name : Uninstall [Conda]
71+ shell : bash -l {0}
72+ run : |
73+ cd $GITHUB_WORKSPACE/build
74+ cmake --build . --config ${{ matrix.build_type }} --target uninstall
You can’t perform that action at this time.
0 commit comments