forked from Kallu-A/Tri-2-Quad-Mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (64 loc) · 2.04 KB
/
continuous.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
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Continuous
on:
push:
create:
tags:
jobs:
linux-mac:
strategy:
matrix:
cfg: [{os: ubuntu-latest, cxx: g++-9},
{os: macos-latest, cxx: clang++}]
# config: [Release, Debug]
config: [Release]
runs-on: ${{ matrix.cfg.os }}
env:
CXX: ${{ matrix.cfg.cxx }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DOSName=${{ matrix.cfg.os }}
- name: CMake Build
run: cmake --build build --parallel
- name: Run executable - entrypoint_exec
run: build/entrypoint_exec_${{ matrix.cfg.os }}_addon path=mesh/quarterdisk_tri.mesh
- name: Create archive
run: tar -czvf tri2quadmesh_${{ matrix.cfg.os }}.tar.gz build/entrypoint_exec_${{ matrix.cfg.os }}_addon build/lib/*
-
name: Deploy
uses: xresloader/upload-to-github-release@v1
with:
tags: true
draft: false
file: tri2quadmesh_${{ matrix.cfg.os }}.tar.gz
overwrite: true
update_latest_release: true
verbose: true
windows-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake
run: cmake -B build -DOSName=win
- name: Release build
run: cmake --build build --parallel --config Release
- name: Release run
run: build/Release/entrypoint_exec_win_addon.exe path=mesh/quarterdisk_tri.mesh
- name: Debug build
run: cmake --build build --parallel --config Debug
# - name: Debug run - delete facet
# run: build/Debug/entrypoint_exec_win_addon.exe path=mesh/quarterdisk_tri.mesh
-
name: Deploy
uses: xresloader/upload-to-github-release@v1
with:
tags: true
draft: false
file: build/Release/entrypoint_exec_win_addon.exe;
overwrite: true
update_latest_release: true
verbose: true