2021-03-21 21:08:09 +08:00
|
|
|
name: Linux Clang
|
2021-03-21 20:42:12 +08:00
|
|
|
|
|
|
|
on:
|
2021-10-01 03:43:34 +08:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-03-21 20:42:12 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Linux Clang
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: seanmiddleditch/gha-setup-ninja@master
|
|
|
|
- name: Build
|
|
|
|
run: >
|
|
|
|
mkdir build;
|
|
|
|
cd build;
|
|
|
|
cmake ..
|
2021-05-23 18:53:20 +08:00
|
|
|
-DCMAKE_CXX_COMPILER=clang++
|
2021-03-21 20:42:12 +08:00
|
|
|
-DFTXUI_BUILD_TESTS=ON;
|
|
|
|
cmake --build . --config Release;
|
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
if: ${{ matrix.config.test }}
|
|
|
|
run: >
|
|
|
|
cd build;
|
|
|
|
./tests
|