-
Notifications
You must be signed in to change notification settings - Fork 128
70 lines (60 loc) · 1.59 KB
/
osx.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
name: OSX
on:
push:
paths-ignore:
- 'doc/**'
pull_request:
paths-ignore:
- 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: OSX
runs-on: 'macos-latest'
strategy:
fail-fast: true
matrix:
type: ['floating']
env:
BUILD_TYPE: ${{ matrix.type }}
CACHE_NUMBER: 0
steps:
- uses: actions/checkout@v2
- name: Support longpaths
run: git config --system core.longpaths true
if: matrix.platform == 'windows-latest'
- name: Cache Conda Environment
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ steps.get-date.outputs.today }}-conda-${{ env.CACHE_NUMBER }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: scripts/ci/environment.yml
python-version: "3.10"
activate-environment: "entwine-build"
use-mamba: true
auto-update-conda: true
- name: Setup
shell: bash -l {0}
run: |
source ./scripts/ci/osx/setup.sh
- name: CMake
shell: bash -l {0}
run: |
source ../scripts/ci/osx/cmake.sh
working-directory: ./build
- name: Compile
shell: bash -l {0}
run: |
source ../scripts/ci/osx/compile.sh
working-directory: ./build
- name: Test
shell: bash -l {0}
run: |
source ../scripts/ci/osx/test.sh
working-directory: ./build