Skip to content

Commit 2f3b914

Browse files
committed
Refactor GitHub workflows
1 parent f2bcd59 commit 2f3b914

File tree

3 files changed

+49
-82
lines changed

3 files changed

+49
-82
lines changed

.github/workflows/clang-format-lint.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/docs_build.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/unix_cpu_build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,58 @@ on:
99
name: ci
1010

1111
jobs:
12+
clang-format:
13+
name: Clang Format Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Respository
17+
uses: actions/checkout@master
18+
19+
- name: Check Sources
20+
uses: DoozyX/clang-format-lint-action@v0.14
21+
with:
22+
source: './src ./test ./examples'
23+
extensions: 'h,cpp,hpp'
24+
clangFormatVersion: 14
25+
26+
documentation:
27+
name: Documentation
28+
runs-on: ubuntu-18.04
29+
env:
30+
DOXYGEN_VER: 1.8.18
31+
steps:
32+
- name: Checkout Repository
33+
uses: actions/checkout@master
34+
35+
- name: Install Doxygen
36+
run: |
37+
wget --quiet https://sourceforge.net/projects/doxygen/files/rel-${DOXYGEN_VER}/doxygen-${DOXYGEN_VER}.linux.bin.tar.gz
38+
mkdir doxygen
39+
tar -xf doxygen-${DOXYGEN_VER}.linux.bin.tar.gz -C doxygen --strip 1
40+
41+
- name: Install Boost
42+
run: |
43+
sudo add-apt-repository ppa:mhier/libboost-latest
44+
sudo apt-get -qq update
45+
sudo apt-get install -y libboost1.74-dev
46+
47+
- name: Configure
48+
run: |
49+
mkdir build && cd build && unset VCPKG_ROOT
50+
cmake -DAF_BUILD_CPU:BOOL=OFF -DAF_BUILD_CUDA:BOOL=OFF \
51+
-DAF_BUILD_OPENCL:BOOL=OFF -DAF_BUILD_UNIFIED:BOOL=OFF \
52+
-DAF_BUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF \
53+
-DDOXYGEN_EXECUTABLE:FILEPATH=${GITHUB_WORKSPACE}/doxygen/bin/doxygen ..
54+
55+
- name: Build
56+
run: |
57+
cd ${GITHUB_WORKSPACE}/build
58+
cmake --build . --target docs
59+
1260
build_cpu:
1361
name: CPU
1462
runs-on: ${{ matrix.os }}
63+
needs: [clang-format, documentation]
1564
env:
1665
NINJA_VER: 1.10.2
1766
CMAKE_VER: 3.10.2

0 commit comments

Comments
 (0)