Files
clang-uml/.github/workflows/build.yml
2021-05-29 20:58:17 +02:00

23 lines
687 B
YAML

name: build
on: [push, pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install add-apt-repository
run: sudo apt-get install software-properties-common
- name: Add llvm repository
run: sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' && sudo apt update
- name: Install deps
run: sudo apt-get install ccache cmake libyaml-cpp-dev libfmt-dev libspdlog-dev clang-12 libclang-12-dev libclang-cpp12-dev
- name: Build and unit test
run: |
make debug
make test