-
Notifications
You must be signed in to change notification settings - Fork 312
55 lines (49 loc) · 1.93 KB
/
omnios-ci.yml
File metadata and controls
55 lines (49 loc) · 1.93 KB
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
name: OmniOS
'on':
- push
- pull_request
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Build and Test on OmniOS
uses: vmactions/omnios-vm@v1
with:
release: r151050
usesh: true
prepare: |
set -e
pkg install developer/cmake developer/gcc13 developer/build/gnu-make developer/versioning/git
run: |
set -e
SRCDIR=$(pwd)
# Build and Test
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=destination -DENABLE_ROARING_TESTS=ON ..
cmake --build .
ctest . --output-on-failure
cmake --install .
cd ../tests/installation/find && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
cd $SRCDIR
# Build and Test Shared
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=destinationshared -DENABLE_ROARING_TESTS=ON -B buildshared
cmake --build buildshared
cmake --install buildshared
cd tests/installation/find
cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../destinationshared -B buildshared
cmake --build buildshared
./buildshared/repro
cd $SRCDIR
# Build and Test Debug
mkdir builddebug
cd builddebug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=destination -DENABLE_ROARING_TESTS=ON ..
cmake --build .
ctest . --output-on-failure
cmake --install .
cd ../tests/installation/find && mkdir builddebug && cd builddebug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
cd $SRCDIR