Build examples in CI using GitHub (#283)

* build examples in CI using github

* update cxxopts style
This commit is contained in:
Lars Melchior
2021-08-29 20:27:10 +02:00
committed by GitHub
parent 91585e3864
commit c5cb85b2f1
3 changed files with 38 additions and 51 deletions

30
.github/workflows/examples.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Examples
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build all
env:
CC: gcc
CXX: g++
run: python3 examples/build_all.py
clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build all
env:
CC: clang
CXX: clang++
run: python3 examples/build_all.py