-
Notifications
You must be signed in to change notification settings - Fork 33
58 lines (47 loc) · 1.28 KB
/
ci.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
name: Build Project
on:
push:
branches: ['*']
pull_request:
branches: ['*']
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- name: "Clone SMESH"
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: "Configure conda"
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
- name: "Install conda build"
run: conda install -c conda-forge conda-build python-patch
- name: "Check conda"
run: |
conda info -a
conda list
- name: "Install Linux Dependencies"
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libxext-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64
- name: "Prepare sources"
run: |
python prepare.py
- name: "Run conda build"
run: |
mkdir conda
conda build ci/conda -c conda-forge --output-folder conda
- name: "Upload conda package"
uses: actions/upload-artifact@v2
with:
name: smesh-${{ matrix.os }}
path: conda