-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (54 loc) · 1.57 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
name: Continuous
on:
push:
create:
tags:
jobs:
linux-mac:
strategy:
matrix:
cfg: [{os: ubuntu-latest, cxx: g++-12},
{os: ubuntu-latest, cxx: g++-9},
{os: macos-latest, cxx: clang++}]
config: [Release, Debug]
runs-on: ${{ matrix.cfg.os }}
env:
CXX: ${{ matrix.cfg.cxx }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }}
- name: CMake Build
run: cmake --build build --parallel
- name: Run executable
run: build/delete_face_addon model=build/catorus.geogram facet_index=0
-
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Deploy
uses: xresloader/upload-to-github-release@v1
with:
draft: false
file: build/*
overwrite: true
update_latest_release: true
verbose: true
if: "startsWith(github.ref, 'refs/tags/')"
windows-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure CMake
run: cmake -B build
- name: Release build
run: cmake --build build --parallel --config Release
- name: Release run
run: build/Release/delete_face_addon.exe model=build/catorus.geogram facet_index=0
- name: Debug build
run: cmake --build build --parallel --config Debug
- name: Debug run
run: build/Debug/delete_face_addon.exe model=build/catorus.geogram facet_index=0