forked from libressl/portable
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (76 loc) · 2.67 KB
/
cmake_config.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
name: cmake_config
on: [push, pull_request]
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true
jobs:
cmake-check:
defaults:
run:
shell: bash
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
continue-on-error: false
name: ${{ matrix.os }}
steps:
- name: Setup Windows dependencies
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autoconf
automake
diffutils
libtool
gcc
git
patch
perl
- name: Setup macOS dependencies
if: runner.os == 'macOS'
run: brew install automake libtool
- uses: actions/checkout@v4
- name: Prepare source tree for build (Windows)
if: runner.os == 'Windows'
run: ./autogen.sh
shell: msys2 {0}
- name: Prepare source tree for build (Unix)
if: runner.os != 'Windows'
run: ./autogen.sh
- name: Configure
run: |
cmake -S . \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/../local
- name: Build
run: cmake --build build --config Release --verbose
- name: Install
run: cmake --install build --config Release
- name: Consume from the build directory - Configure
run: |
cmake -S tests/cmake \
-B consumer-build \
-D CMAKE_BUILD_TYPE=Release \
-D LibreSSL_DIR=$GITHUB_WORKSPACE/build
- name: Consume from the build directory - Build
run: cmake --build consumer-build --config Release --verbose
- name: Consume from the install directory (CMAKE_PREFIX_PATH) - Configure
run: |
cmake -S tests/cmake \
-B consumer-install-prefix \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/../local
- name: Consume from the install directory (CMAKE_PREFIX_PATH) - Build
run: cmake --build consumer-install-prefix --config Release --verbose
- name: Consume from the install directory (LibreSSL_DIR) - Configure
run: |
cmake -S tests/cmake \
-B consumer-install-dir \
-D CMAKE_BUILD_TYPE=Release \
-D LibreSSL_DIR=$GITHUB_WORKSPACE/../local/lib/cmake/LibreSSL
- name: Consume from the install directory (LibreSSL_DIR) - Build
run: cmake --build consumer-install-dir --config Release --verbose