-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (52 loc) · 1.78 KB
/
cmake_tool.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
name: CMake Tool
on:
push:
branches: [ "master", "dev", "dev-ndy", "dev-sge", "dev-vge" ]
paths: ['lib/tool/**', '.github/workflows/cmake_tool.yml']
env:
CMAKELISTS_DIR: ${{github.workspace}}/lib/tool
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-22.04, macos-12]
fail-fast: false
steps:
- name: Set git to use CRLF
run: |
git config --global core.autocrlf true
git config --global core.eol crlf
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Create default profile
run: conan profile detect
- name: Add custom remote
run: |
conan remote add --insecure cano7782 ${{ secrets.CONAN_SERVER_HOST }}
conan remote login -p ${{ secrets.CONAN_SERVER_PASSWORD }} cano7782 ${{ secrets.CONAN_SERVER_USER }}
- name: Create package
working-directory: ${{env.CMAKELISTS_DIR}}
run: |
conan export ../util
conan export ../core
conan export ../io
conan export ../renderer
conan export ../app
conan export ../python_binding
conan export ../ui
conan export tools/mdprep
conan create . --build=missing --settings=compiler.cppstd=20
- name: Test
working-directory: ${{env.CMAKELISTS_DIR}}
run: |
conan create test --build=missing --settings=compiler.cppstd=20
conan create tools/mdprep/test --build=missing --settings=compiler.cppstd=20
- name: Upload dependencies
working-directory: ${{env.CMAKELISTS_DIR}}
run: |
conan upload eigen -r=cano7782
conan upload dylib -r=cano7782