-
-
Notifications
You must be signed in to change notification settings - Fork 173
95 lines (89 loc) · 3.38 KB
/
novcpkg_build_master.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
name: NoVcpkg Build
on:
push:
branches:
- master
pull_request:
jobs:
build_novcpkg:
name: build-novcpkg-${{ matrix.os }}-gcc${{ matrix.gcc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
gcc: [11, 12, 13]
exclude:
#- os: macos-latest # Allow one gcc variant for mac/windows, since they don't use gcc
#gcc: 11
- os: macos-latest
gcc: 12
- os: macos-latest
gcc: 13
#- os: windows-latest
#gcc: 11
- os: windows-latest
gcc: 12
- os: windows-latest
gcc: 13
env:
# Indicates the CMake build directory where project files and binaries are being produced.
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
steps:
- name: Install Dependencies (Linux)
run: |
sudo apt-get update && \
sudo apt-get install --no-install-recommends \
libboost-dev \
libsodium-dev \
libprotobuf-dev \
protobuf-compiler \
libgflags-dev \
libutempter-dev \
build-essential \
ninja-build \
libcurl4-openssl-dev \
curl \
zip \
unzip \
tar \
cmake \
libutempter-dev \
libunwind-dev
if: matrix.os == 'ubuntu-latest'
- name: Install Dependencies (macOS)
run: brew update && brew install ninja cmake pkg-config curl openssl protobuf libsodium automake autoconf libtool
if: matrix.os == 'macos-latest'
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up GCC (Ubuntu)
uses: egor-tensin/setup-gcc@v1
with:
version: ${{ matrix.gcc }}
platform: x64
if: matrix.os == 'ubuntu-latest'
# Run CMake to generate Ninja project files.
- name: Install dependencies and generate project files (mac)
run: |
OPENSSL_ROOT_DIR=`brew --prefix openssl` cmake -S "${{ github.workspace }}" -B "${{ env.CMAKE_BUILD_DIR }}" -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDISABLE_VCPKG=ON -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR
if: matrix.os == 'macos-latest'
- name: Install dependencies and generate project files (linux)
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
run: |
cmake -S "${{ github.workspace }}" -B "${{ env.CMAKE_BUILD_DIR }}" -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDISABLE_VCPKG=ON -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR
if: matrix.os == 'ubuntu-latest'
- name: Install dependencies and generate project files (windows)
run: |
cmake -S "${{ github.workspace }}" -B "${{ env.CMAKE_BUILD_DIR }}" -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDISABLE_VCPKG=ON -DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR
if: matrix.os == 'windows-latest'
# Build the whole project with Ninja (which is spawn by CMake).
- name: Build
run: |
cmake --build "${{ env.CMAKE_BUILD_DIR }}"
- uses: actions/upload-artifact@v4
with:
name: et-client-${{matrix.os}}-gcc${{matrix.gcc}}
path: ${{ env.CMAKE_BUILD_DIR }}/et${{matrix.extension}}