-
Notifications
You must be signed in to change notification settings - Fork 143
80 lines (71 loc) · 2.86 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
linux:
name: "${{ matrix.name }}"
runs-on: [ubuntu-20.04]
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
include:
- name: "Linux / OpenSSL 1.1.0"
command: make -f misc/docker-ci.mk CMAKE_ARGS='-DOPENSSL_ROOT_DIR=-DOPENSSL_ROOT_DIR=/opt/openssl-1.1.0 -DWITH_FUSION=OFF' CONTAINER_NAME='h2oserver/h2o-ci:ubuntu1604'
- name: "Linux / OpenSSL 1.1.1"
command: make -f misc/docker-ci.mk CMAKE_ARGS='-DWITH_AEGIS=1 -DAEGIS_INCLUDE_DIR=/usr/local/include'
- name: "Linux / OpenSSL 3.0 + mbedtls"
command: make -f misc/docker-ci.mk CONTAINER_NAME=h2oserver/h2o-ci:ubuntu2204 CMAKE_ARGS='-DWITH_MBEDTLS=1'
- name: "Linux / OpenSSL 1.1.1 + ASan & UBSan"
command: make -f misc/docker-ci.mk CMAKE_ARGS='-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS=-fsanitize=address,undefined -DCMAKE_CXX_FLAGS=-fsanitize=address,undefined' CHECK_ENVS='ASAN_OPTIONS=detect_leaks=0 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1'
- name: "Linux / boringssl"
command: make -f misc/docker-ci.mk CONTAINER_NAME=h2oserver/h2o-ci:ubuntu2204 CMAKE_ARGS='-DOPENSSL_ROOT_DIR=/opt/boringssl'
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run with Docker
shell: 'script -q -e -c "bash -xe {0}"'
run: |
chmod -R ugo+w .
${{ matrix.command }}
macos:
name: "${{ matrix.name }}"
runs-on: [macos-latest]
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
include:
- name: "macOS / OpenSSL 3.x"
openssl: openssl@3
- name: "macOS / OpenSSL 1.1.x"
openssl: [email protected]
- name: "macOS / LibreSSL"
openssl: libressl
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Dependencies
env:
OPENSSL: ${{ matrix.openssl }}
run: |
brew install perl libfaketime pkg-config ${OPENSSL}
perl -v
curl -sSfL https://cpanmin.us | perl - -v --notest Scope::Guard Test::TCP
- name: Build
env:
OPENSSL: ${{ matrix.openssl }}
run: |
set -xe
mkdir -p build
cd build
cmake .. -DOPENSSL_ROOT_DIR="$(brew --prefix ${OPENSSL})"
make all VERBOSE=1
make check