forked from google/breakpad
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.08 KB
/
build.yaml
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
name: Build
on: [push, workflow_dispatch]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: Build - Ubuntu
runs-on: ubuntu-latest
compiler: clang
cxx-compiler: clang++
- name: Build - macOS
runs-on: macos-latest
cmake-args: -D CMAKE_OSX_DEPLOYMENT_TARGET=10.13
- name: Build - Windows
runs-on: windows-latest
cmake-args: -D CMAKE_GENERATOR_PLATFORM=x64 -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install packages (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get install -y ninja-build
- name: Compiling source code
run: |
cmake -S . -B build ${{ matrix.cmake-args }} -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE=MinSizeRel
cmake --build build --config MinSizeRel
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.cxx-compiler }}