-
Notifications
You must be signed in to change notification settings - Fork 2.4k
116 lines (109 loc) · 3.18 KB
/
vtk_packages.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: VTK Packages
permissions: {}
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Linux:
permissions:
contents: write
# TODO: Convert to docker
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: CMake configure
run: |
mkdir build
cd build
cmake ../3rdparty/vtk
- name: Build
run: |
cd build
make -j$(nproc)
cmake -E sha256sum vtk*.tar.gz > checksum_linux.txt
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: vtk_linux
path: |
build/vtk*.tar.gz
build/checksum*.txt
if-no-files-found: error
Windows:
permissions:
contents: write
runs-on: windows-2019
env:
SRC_DIR: "D:\\a\\open3d\\open3d"
BUILD_DIR: "C:\\Open3D\\build"
NPROC: 2
strategy:
fail-fast: false
matrix:
configuration: [dllrt, staticrt]
include:
- configuration: dllrt
STATIC_RUNTIME: OFF
- configuration: staticrt
STATIC_RUNTIME: ON
steps:
- name: Disk space used
run: Get-PSDrive
- name: Checkout source code
uses: actions/checkout@v4
- name: Config
# Move build directory to C: https://github.com/actions/virtual-environments/issues/1341
run: |
$ErrorActionPreference = 'Stop'
New-Item -Path ${{ env.BUILD_DIR }} -ItemType Directory
cd ${{ env.BUILD_DIR }}
cmake -G "Visual Studio 16 2019" -A x64 `
-DCMAKE_INSTALL_PREFIX="C:\Program Files\Open3D" `
-DSTATIC_WINDOWS_RUNTIME=${{ matrix.STATIC_RUNTIME }} `
"${{ env.SRC_DIR }}\3rdparty\vtk"
ls
- name: Build
working-directory: ${{ env.BUILD_DIR }}
run: |
$ErrorActionPreference = 'Stop'
cmake --build . --parallel ${{ env.NPROC }} --config Release
ls
cmake --build . --parallel ${{ env.NPROC }} --config Debug
ls
cmake -E sha256sum (get-item vtk*.tar.gz).Name > checksum_win_${{matrix.configuration}}.txt
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: vtk_windows_${{matrix.configuration}}
path: |
${{ env.BUILD_DIR }}/vtk*.tar.gz
${{ env.BUILD_DIR }}/checksum*.txt
if-no-files-found: error
MacOS:
permissions:
contents: write
runs-on: macos-12
strategy:
fail-fast: false
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: CMake configure
run: |
mkdir build
cd build
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 ../3rdparty/vtk
- name: Build
run: |
cd build
make -j2
cmake -E sha256sum vtk*.tar.gz > checksum_macos.txt
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: vtk_macos
path: |
build/vtk*.tar.gz
build/checksum*.txt
if-no-files-found: error