FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SimpleBVH/.github/workflows/continuous.yml at main · geometryprocessing/SimpleBVH · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
geometryprocessing
/
SimpleBVH
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
23
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SimpleBVH
/
.github
/
workflows
/
continuous.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
126 lines (107 loc) · 3.27 KB
Breadcrumbs
SimpleBVH
/
.github
/
workflows
/
continuous.yml
Copy path
File metadata and controls
126 lines (107 loc) · 3.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
117
118
119
120
121
122
123
124
125
126
name
:
Build
on
:
push
:
branches
:
[main]
pull_request
:
env
:
CTEST_OUTPUT_ON_FAILURE
:
ON
CTEST_PARALLEL_LEVEL
:
2
jobs
:
#
###################
#
Linux / macOS
#
###################
Unix
:
name
:
${{ matrix.name }} (${{ matrix.config }})
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[ubuntu-latest, macos-latest]
config
:
[Debug, Release]
include
:
-
os
:
macos-latest
name
:
macOS
-
os
:
ubuntu-latest
name
:
Linux
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2.5.0
with
:
fetch-depth
:
10
-
name
:
Dependencies (Linux)
if
:
runner.os == 'Linux'
run
:
|
sudo apt-get install ccache
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
-
name
:
Dependencies (macOS)
if
:
runner.os == 'macOS'
run
:
|
brew install ccache
echo 'CACHE_PATH=~/Library/Caches/ccache' >> "$GITHUB_ENV"
-
name
:
Cache Build
id
:
cache-build
uses
:
actions/cache@v4
with
:
path
:
${{ env.CACHE_PATH }}
key
:
${{ runner.os }}-${{ matrix.config }}-cache
-
name
:
Prepare ccache
run
:
|
ccache --max-size=1.0G
ccache -V && ccache --show-stats && ccache --zero-stats
-
name
:
Configure
run
:
|
mkdir -p build
cd build
cmake .. \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DSIMPLE_BVH_WITH_UNIT_TESTS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
-
name
:
Build
run
:
cd build; make -j2; ccache --show-stats
-
name
:
Tests
run
:
cd build; ctest --verbose
#
###################
#
Windows
#
###################
Windows
:
runs-on
:
windows-latest
strategy
:
fail-fast
:
false
matrix
:
config
:
[Debug, Release]
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2.5.0
with
:
fetch-depth
:
10
-
name
:
Install Ninja
uses
:
seanmiddleditch/gha-setup-ninja@master
-
name
:
Set env variable for sccache
run
:
|
echo "appdata=$env:LOCALAPPDATA" >> ${env:GITHUB_ENV}
-
name
:
Cache build
id
:
cache-build
uses
:
actions/cache@v4
with
:
path
:
${{ env.appdata }}\Mozilla\sccache
key
:
${{ runner.os }}-${{ matrix.config }}-cache
-
name
:
Prepare sccache
run
:
|
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop install sccache --global
# Scoop modifies the PATH so we make it available for the next steps of the job
echo "${env:PATH}" >> ${env:GITHUB_PATH}
-
name
:
Configure and build
shell
:
cmd
run
:
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
cmake -G Ninja ^
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache ^
-DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
-DSIMPLE_BVH_WITH_UNIT_TESTS=ON ^
-B build ^
-S .
cmake --build build -j1
-
name
:
Tests
run
:
cd build; ctest --verbose -j2
Back
|
FazBrowse Home
|
New Git URL