Skip to content

Commit cf69b7f

Browse files
committed
[ci] add new pipeline for linux and os no cuda
caching of apt/homebrew
1 parent fa62419 commit cf69b7f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI on linux and macOS no cuda
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "5 8 * * 1"
9+
10+
permissions:
11+
contents: read
12+
checks: write
13+
pull-requests: write
14+
15+
jobs:
16+
build:
17+
name: ${{ matrix.os }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v5
27+
28+
- name: Install Linux dependencies with caching
29+
uses: awalsh128/cache-apt-pkgs-action@latest
30+
if: runner.os == 'Linux'
31+
with:
32+
packages: libopencv-dev libboost-dev libeigen3-dev libtbb-dev
33+
version: 1.0
34+
35+
- name: Install macOS dependencies with caching
36+
uses: tecolicom/actions-use-homebrew-tools@v1
37+
if: runner.os == 'macOS'
38+
with:
39+
# put your list of homebrew packages here for the dependencies you need
40+
tools: opencv boost eigen tbb
41+
42+
- name: Build (Release)
43+
uses: lukka/run-cmake@v10
44+
with:
45+
configurePreset: 'release'
46+
configurePresetAdditionalArgs: "['-DWITH_CUDA:BOOL=ON']"
47+
buildPreset: 'release'
48+
testPreset: 'release'
49+
50+
- name: Build (Debug)
51+
uses: lukka/run-cmake@v10
52+
with:
53+
configurePreset: 'debug'
54+
configurePresetAdditionalArgs: "['-DWITH_CUDA:BOOL=ON']"
55+
buildPreset: 'debug'
56+
testPreset: 'debug'

0 commit comments

Comments
 (0)