-
Notifications
You must be signed in to change notification settings - Fork 431
69 lines (64 loc) · 2.42 KB
/
Copy pathci-freebsd.yaml
File metadata and controls
69 lines (64 loc) · 2.42 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# SPDX-FileCopyrightText: 2026 Juergen Repp
# SPDX-License-Identifier: BSD-2-Clause
name: FreeBSD CI
on:
[push, pull_request]
jobs:
freebsd-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
release: "14.4"
prepare: |
export ASSUME_ALWAYS_YES=yes
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
rm -rf /var/db/pkg/repo-* /var/db/pkg/FreeBSD.meta /var/cache/pkg/*
pkg bootstrap -f
pkg update -f
pkg install -y bash
pkg install -y gmake
pkg install -y coreutils
pkg install -y libtool
pkg install -y pkgconf
pkg install -y autoconf
pkg install -y autoconf-archive
pkg install -y automake
pkg install -y openssl
pkg install -y json-c
pkg install -y cmocka
pkg install -y uthash
pkg install -y wget
pkg install -y curl
pkg install -y git
pkg install -y libftdi1
pkg install -y swtpm
pkg install -y libuuid
pkg update -f
sync
run: |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
cd /home/runner/work/tpm2-tss/tpm2-tss
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export CFLAGS="-I/usr/local/include -I/usr/local/openssl/include"
export LDFLAGS="-L/usr/local/lib"
export libusb_version="v1.0.26"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
git config --global --add safe.directory /home/runner/work/tpm2-tss/tpm2-tss
./bootstrap
./configure --enable-self-generated-certificate \
--enable-unit=yes \
--enable-integration=yes \
--with-crypto=ossl \
--disable-doxygen-doc \
--enable-tcti-swtpm=yes \
--enable-tcti-libtpms=no \
--enable-tcti-mssim=no \
--disable-tcti-spi-ltt2go \
--disable-dependency-tracking
gmake -j check || { cat test-suite.log; exit 1; }