Skip to content

Commit dc6dddd

Browse files
committed
Update CI build
1 parent 281265b commit dc6dddd

1 file changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,28 @@ name: "build"
33
on:
44
workflow_dispatch:
55

6+
pull_request:
7+
branches:
8+
- main
9+
610
push:
711
branches:
812
- main
913
tags:
1014
- v*
1115

12-
pull_request:
13-
1416
jobs:
1517
build:
16-
runs-on: macos-latest
17-
steps:
18-
- name: Prepare
19-
run: brew install doxygen
18+
strategy:
19+
matrix:
20+
macos: [11, 12, latest]
2021

22+
runs-on: macos-${{ matrix.macos }}
23+
name: macos-${{ matrix.macos }}
24+
25+
steps:
2126
- name: Checkout
22-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2328
with:
2429
fetch-depth: 0
2530

@@ -38,8 +43,24 @@ jobs:
3843
- name: Install
3944
run: sudo make install
4045

46+
doxygen:
47+
runs-on: macos-latest
48+
if: github.event_name != 'pull_request'
49+
50+
steps:
51+
- name: Install tools
52+
run: brew install doxygen graphviz
53+
54+
- name: Checkout
55+
uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
58+
59+
- name: Build
60+
run: make debug_build
61+
4162
- name: Deploy
42-
uses: JamesIves/github-pages-deploy-action@4.0.0
63+
uses: JamesIves/github-pages-deploy-action@v4
4364
with:
4465
branch: doxygen
4566
folder: html

0 commit comments

Comments
 (0)