-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (63 loc) · 1.85 KB
/
ci-build.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
name: ci-build
on:
push:
branches:
- deploy
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-13
include:
- os: ubuntu-latest
conda_platform: linux-64
artifact_name: jsonqml-linux
- os: windows-latest
conda_platform: win-64
artifact_name: jsonqml-windows
- os: macos-13
conda_platform: osx-64
artifact_name: jsonqml-macos
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: false
channels: conda-forge, defaults
channel-priority: true
- name: Configuring Conda Environment
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv
conda devenv
- name: Building, Testing & Installing jsonqml
if: matrix.os != 'windows-latest'
shell: bash -l {0}
run: |
conda activate GEMSGUI
mkdir .build && cd .build
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release
ninja
ninja install
- name: Building, Testing & Installing jsonqml (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
call conda activate GEMSGUI || goto :eof
cmake -DCMAKE_BUILD_TYPE=Release -A x64 -S . -B build || goto :eof
cmake --build build --target install --config Release || goto :eof
- name: Check conda
run: |
conda config --show
conda list --show-channel-urls