FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
OpenSplat/.github/workflows/ubuntu-cpu.yml at OpenSplatLibrary · NewChromantics/OpenSplat · GitHub
NewChromantics
/
OpenSplat
Public
forked from
WebODM/OpenSplat
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
OpenSplat
/
.github
/
workflows
/
ubuntu-cpu.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
109 lines (99 loc) · 3.78 KB
Breadcrumbs
OpenSplat
/
.github
/
workflows
/
ubuntu-cpu.yml
Copy path
File metadata and controls
109 lines (99 loc) · 3.78 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
name
:
OpenSplat (Ubuntu CPU)
on
:
push
:
branches
:
-
main
pull_request
:
types
:
[ assigned, opened, synchronize, reopened ]
release
:
types
:
[ published, edited ]
jobs
:
build
:
name
:
${{ matrix.os }}-cpu-torch-${{ matrix.torch-version }}-${{ matrix.cmake-build-type }}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[ubuntu-22.04, ubuntu-20.04]
#
[ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
arch
:
[x64]
#
[x64, x86]
torch-version
:
[2.3.1, 2.2.1, 2.1.2]
#
[1.12.0, 1.13.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1]
cmake-build-type
:
[Release]
#
[Debug, ClangTidy]
env
:
CCACHE_DIR
:
${{ github.workspace }}/ccache
CCACHE_BASEDIR
:
${{ github.workspace }}
CL
:
/MP
CMAKE_GENERATOR
:
Ninja
CMAKE_GENERATOR_PLATFORM
:
${{matrix.arch}}
steps
:
-
name
:
Checkout Repository
uses
:
actions/checkout@v4
with
:
submodules
:
recursive
-
name
:
Setup Ubuntu
run
:
|
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
ninja-build \
libopencv-dev \
wget
wget -nv https://github.com/ccache/ccache/releases/download/v4.9.1/ccache-4.9.1-linux-x86_64.tar.xz
sudo tar xf ccache-4.9.1-linux-x86_64.tar.xz -C /usr/bin --strip-components=1 --no-same-owner ccache-4.9.1-linux-x86_64/ccache
rm -f ccache-*-linux-x86_64.tar.xz
ccache --version
-
name
:
Sudo Tar Wrapper
run
:
|
# Workaround: https://github.com/containers/podman/discussions/17868
sudo mv -fv /usr/bin/tar /usr/bin/tar.orig
echo -e '#!/bin/sh\n\nsudo /usr/bin/tar.orig "$@"' | sudo tee -a /usr/bin/tar
sudo chmod +x /usr/bin/tar
-
name
:
Restore LibTorch Cache
uses
:
actions/cache@v4
id
:
libtorch-cache
with
:
key
:
libtorch-${{ matrix.torch-version }}-cpu-ubuntu
path
:
|
${{ github.workspace }}/libtorch
-
name
:
Install LibTorch
if
:
${{ steps.libtorch-cache.outputs.cache-hit != 'true' }}
run
:
|
wget --no-check-certificate -nv https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-${{ matrix.torch-version }}%2Bcpu.zip -O libtorch.zip
unzip -q ${{ github.workspace }}/libtorch.zip -d ${{ github.workspace }}/
rm ${{ github.workspace }}/libtorch.zip
-
name
:
Cache Build
uses
:
actions/cache@v4
id
:
cache-builds
with
:
key
:
${{ matrix.os }}-cpu-torch-${{ matrix.cmake-build-type }}-ccache-${{ github.run_id }}
restore-keys
:
${{ matrix.os }}-cpu-torch-${{ matrix.cmake-build-type }}-ccache-
path
:
${{ env.CCACHE_DIR }}
-
name
:
Configure And Build
run
:
|
set -x
mkdir build
cd build
cmake .. \
-G${CMAKE_GENERATOR} \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} \
-DCMAKE_C_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/libtorch \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install \
-DOPENSPLAT_BUILD_SIMPLE_TRAINER=ON
ninja
-
name
:
Save Artifacts
if
:
${{ matrix.os == 'ubuntu-22.04' && matrix.torch-version == '2.2.1' && matrix.cmake-build-type == 'Release' }}
uses
:
actions/upload-artifact@v4
with
:
path
:
|
build/libgsplat_cpu.a
build/opensplat
build/simple_trainer
-
name
:
Clean Compiler Cache
run
:
|
set -x
ccache --show-stats
ccache --evict-older-than 7d
ccache -s
ccache --show-stats
Back
|
FazBrowse Home
|
New Git URL