-
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (55 loc) · 1.62 KB
/
cdraco.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
on:
workflow_dispatch:
inputs:
tag:
description: 'qmuntal/draco-c tag to clone'
required: true
name: CDraco
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-latest
cc: gcc-10
cxx: g++-10
generator: Unix Makefiles
libname: libdraco_c_linux_amd64
- os: macos-latest
cc: clang
cxx: clang++
generator: Unix Makefiles
libname: libdraco_c_darwin_amd64
- os: windows-latest
cc: x86_64-w64-mingw32-gcc
cxx: x86_64-w64-mingw32-g++
generator: MinGW Makefiles
libname: libdraco_c_windows_amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.tag }}
fetch-depth: 1
repository: qmuntal/draco-c
- run: mkdir _gh_build
- run: |
cmake -G "${{ matrix.generator }}" \
-DDRACO_POINT_CLOUD_COMPRESSION=ON \
-DDRACO_MESH_COMPRESSION=ON \
-DDRACO_STANDARD_EDGEBREAKER=ON \
-DCMAKE_BUILD_TYPE=Release ..
working-directory: ./_gh_build
shell: bash
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
- run: make -j10
working-directory: ./_gh_build
- name: Archive binaries
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.libname }}
path: _gh_build/libdraco_c.a
if-no-files-found: error
retention-days: 5