-
Notifications
You must be signed in to change notification settings - Fork 90
101 lines (87 loc) · 2.8 KB
/
freebsd.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
name: FreeBSD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
# Build shared library with GMake (Clang)
release-gmake-clang-shared:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'
- name: Build
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
prepare: pkg install -y curl nasm llvm gmake
run: |
freebsd-version
gmake CC=clang -j 4
# Build shared library with GMake (GCC)
release-gmake-gcc-shared:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'
- name: Build
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
prepare: pkg install -y curl nasm gmake gcc
run: |
freebsd-version
gmake CC=gcc -j 4
# CMake release build with Clang
release-cmake-clang:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'
- name: Clang Release Build
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
prepare: pkg install -y curl nasm gmake cmake
run: |
echo ">>> CMAKE CONFIGURE"
cmake -B ./build -DCMAKE_BUILD_TYPE=Release
echo ">>> CMAKE BUILD"
cd ./build
cmake --build . --config Release -j4 -v
ctest -j 5 -C Release
echo ">>> CMAKE INSTALL"
cmake --install .
# CMake release build with GCC
release-cmake-gcc:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'
- name: Release build with GCC
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
prepare: pkg install -y curl nasm gmake cmake gcc
run: |
echo ">>> CMAKE CONFIGURE"
cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc
echo ">>> CMAKE BUILD"
cd ./build
cmake --build . --config Release -j4 -v
ctest -j 5 -C Release