Skip to content

Commit c49d10d

Browse files
committed
ci: refactor build.yaml workflow
1 parent 99b191b commit c49d10d

File tree

2 files changed

+41
-46
lines changed

2 files changed

+41
-46
lines changed

.github/workflows/build.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
jobs:
8+
build-project:
9+
name: Build Project
10+
runs-on: ${{ matrix.os }}-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu, windows]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4.1.1
18+
19+
- name: Configure Project
20+
uses: threeal/cmake-action@v1.3.0
21+
22+
- name: Build Project
23+
run: cmake --build build --config Release
24+
25+
build-docs:
26+
name: Build Documentation
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4.1.1
31+
32+
- name: Install Requirements
33+
run: pip3 install -r docs/requirements.txt
34+
35+
- name: Build Documentation
36+
run: sphinx-build -b html docs build/docs -W --keep-going
37+
38+
- name: Upload Documentation
39+
uses: actions/upload-pages-artifact@v3.0.0
40+
with:
41+
path: build/docs

.github/workflows/build.yml

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

0 commit comments

Comments
 (0)