-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.13 KB
/
build-linux.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
name: Build libevp for Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [x86, x64]
build_type: [Release]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Update apt
run: sudo apt-get update
- name: Install gcc/g++ packages
run: sudo apt-get install -y gcc-multilib g++-multilib
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Build
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
configure-options: -G Ninja -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DLIBEVP_LINUX_ARCHITECTURE:STRING=${{ matrix.architecture }}
build-type: ${{ matrix.build_type }}
- name: Test
working-directory: ${{ runner.workspace }}/build
run: ctest --timeout 30