-
Notifications
You must be signed in to change notification settings - Fork 132
79 lines (72 loc) · 1.99 KB
/
per-commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "Per-commit CI pipeline"
run-name: "per-commit"
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:
jobs:
formatting:
uses: ./.github/workflows/formatting.yml
compilation:
needs: formatting
runs-on: ubuntu-latest
container:
image: archlinux
timeout-minutes: 720
strategy:
matrix:
include:
- compiler: clang++
mode: optimized
cxxflags: -stdlib=libc++
stage: test
- compiler: g++
mode: debug
- compiler: g++
mode: default
stage: test
- compiler: g++
mode: optimized
stage: test
- compiler: g++
mode: debug
extra_options: --disable-precompiled-headers
- compiler: clang++
mode: debug
extra_options: --disable-asserts --disable-logs
env:
COMPILER: ${{ matrix.compiler }}
MODE: ${{ matrix.mode }}
EXTRA_OPTIONS: ${{ matrix.extra_options }}
CXXFLAGS: ${{ matrix.cxxflags }}
steps:
# The following step is required in all jobs that use this repo's actions
- name: "Retrieve actions from repository"
uses: actions/checkout@v4
with:
sparse-checkout: .github/actions
- name: "Install dependencies and checkout repo in ns-3"
uses: ./.github/actions/install-per-commit
- name: "Build ns-3"
uses: ./.github/actions/build
- if: matrix.stage == 'test'
name: "Test ns-3"
uses: ./.github/actions/test
linting:
needs: compilation
uses: ./.github/workflows/linting.yml
documentation:
needs: linting
uses: ./.github/workflows/test-doc.yml
analysis:
needs: documentation
uses: ./.github/workflows/analysis.yml
secrets: inherit
deploy-doc:
# do not run on PR events
if: github.event_name == 'push'
needs: documentation
uses: ./.github/workflows/deploy-doc.yml
secrets: inherit