-
Notifications
You must be signed in to change notification settings - Fork 299
40 lines (32 loc) · 1.32 KB
/
mathcad_builder.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
name: Mathcad wrapper
on:
push:
branches: [ 'master', 'main', 'develop', 'actions_mathcad' ]
tags: [ 'v*' ]
pull_request:
branches: [ 'master', 'main', 'develop' ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Get dependencies
shell: bash
run: |
mkdir "Custom Functions"
cd "Custom Functions"
curl -H "Authorization: token ${{ secrets.COOLPROP_ORG_REPO_TOKEN }}" https://raw.githubusercontent.com/CoolProp/PRIVATE_DEPENDENCIES/main/MathcadPrime/Custom%20Functions/mcadincl.h --output mcadincl.h
curl -H "Authorization: token ${{ secrets.COOLPROP_ORG_REPO_TOKEN }}" https://raw.githubusercontent.com/CoolProp/PRIVATE_DEPENDENCIES/main/MathcadPrime/Custom%20Functions/mcaduser.lib --output mcaduser.lib
- name: Configure CMake
run: cmake -DCOOLPROP_PRIME_MODULE:BOOL=ON -DCOOLPROP_PRIME_ROOT:STRING="${{ github.workspace }}" -B build -S .
- name: Build
run: |
cmake --build build --target CoolPropMathcadWrapper -j $(nproc) --config Release
cmake --build build --target install --config Release
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: MathcadPrime
path: install_root/MathcadPrime