Skip to content

Commit

Permalink
Create build-linux.yml (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku authored Apr 20, 2024
1 parent 075e43b commit e966fd6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: 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
build-type: ${{ matrix.build_type }}

- name: Test
working-directory: ${{ runner.workspace }}/build
run: ctest -C ${{ matrix.build-type }}

0 comments on commit e966fd6

Please sign in to comment.