Skip to content

Commit 690825a

Browse files
Merge branch 'master' into feature/echo_pulse_width_to_logical_detection
2 parents 56de6eb + f52aeb3 commit 690825a

File tree

107 files changed

+9413
-7058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+9413
-7058
lines changed

.antora/antora.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Component name (without spaces!). All content repositories with the same component name are merged in Antora.
2+
name: asamosi
3+
version:
4+
# Update version number accordingly. This is the version for the main branch
5+
main: 'current'
6+
master: 'current'
7+
v(*)-antora: V$1
8+
v(*): V$1
9+
V(*): V$1
10+
# Update version number accordingly. This is the version for any other activated branch (branch must be added in the generator site.yml!). Schema = 0.0.x-<branch-name> (only works for branches starting with "feature/")
11+
(*): 'V3.6.0-$1'

.antora/modules/gen/doxynav.adoc

Whitespace-only changes.

.antora/modules/interface/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc/images

.antora/modules/interface/nav.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[preface]
2+
* xref:00_preface/00_foreword.adoc[]
3+
[preface]
4+
* xref:00_preface/01_introduction.adoc[]
5+
* xref:01_scope/01_scope.adoc[]
6+
* xref:02_normative_references/01_normative_references.adoc[]
7+
* xref:03_terms_and_definitions/01_terms_and_definitions.adoc[]
8+
* xref:04_abbreviations/01_abbreviations.adoc[]
9+
* xref:05_backward_compatibility/01_backward_compatibility.adoc[]
10+
11+
[appendix]
12+
* xref:xx_annexes/REPLACE_ME.adoc[]
13+
[bibliography]
14+
* xref:bibliography.adoc[]
15+
16+
:sectnums!:
17+
* xref:list_of_figures.adoc[]
18+
19+
:sectnums!:
20+
* xref:list_of_tables.adoc[]
21+
22+
// TODO Replace with generator

.antora/modules/interface/pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Is this a bug fix or a feature? Does it break any existing functionality or forc
1111
How has it been tested?
1212

1313
#### Take this checklist as orientation for yourself, if this PR is ready for the Change Control Board:
14-
- [ ] My suggestion follows the [style and contributors guidelines](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/howtocontribute.html).
15-
- [ ] I have taken care about the [documentation](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/commenting.html).
14+
- [ ] My suggestion follows the [style and contributors guidelines](https://opensimulationinterface.github.io/osi-antora-generator/asamosi/latest/specification/contributing/start_contributing.html).
15+
- [ ] I have taken care about the [message documentation](https://opensimulationinterface.github.io/osi-antora-generator/asamosi/latest/specification/contributing/commenting_messages.html) and the [fields and enums documentation](https://opensimulationinterface.github.io/osi-antora-generator/asamosi/latest/specification/contributing/commenting_fields_enums.html).
1616
- [ ] I have done the [DCO signoff](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/howtocontribute.html#developer-certification-of-origin-dco).
1717
- [ ] My changes generate no errors when passing CI tests.
1818
- [ ] I have successfully implemented and tested my fix/feature locally.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
name: Antora build trigger
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
trigger_antora:
12+
name: Trigger antora generator
13+
14+
runs-on: Ubuntu-latest
15+
16+
env:
17+
MUP_KEY: ${{ secrets.MACHINE_USER_PAT }}
18+
19+
steps:
20+
- name: Trigger generator
21+
if: ${{ env.MUP_KEY != '' }}
22+
uses: peter-evans/repository-dispatch@v2
23+
with:
24+
token: ${{ secrets.MACHINE_USER_PAT }}
25+
event-type: antora-build-trigger
26+
repository: OpenSimulationInterface/osi-antora-generator
27+
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}'

.github/workflows/protobuf.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build-proto2-linux64:
1010
name: Build Proto2 Linux 64
1111

12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- name: Checkout OSI
@@ -30,22 +30,22 @@ jobs:
3030

3131
- name: Cache Dependencies
3232
id: cache-depends
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
35-
path: protobuf-3.15.8
36-
key: ${{ runner.os }}-v1-depends
35+
path: protobuf-3.20.1
36+
key: ${{ runner.os }}-v2-depends
3737

3838
- name: Download ProtoBuf
3939
if: steps.cache-depends.outputs.cache-hit != 'true'
40-
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protobuf-all-3.15.8.tar.gz && tar xzvf protobuf-all-3.15.8.tar.gz
40+
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protobuf-all-3.20.1.tar.gz && tar xzvf protobuf-all-3.20.1.tar.gz
4141

4242
- name: Build ProtoBuf
4343
if: steps.cache-depends.outputs.cache-hit != 'true'
44-
working-directory: protobuf-3.15.8
44+
working-directory: protobuf-3.20.1
4545
run: ./configure DIST_LANG=cpp --prefix=/usr && make
4646

4747
- name: Install ProtoBuf
48-
working-directory: protobuf-3.15.8
48+
working-directory: protobuf-3.20.1
4949
run: sudo make install && sudo ldconfig
5050

5151
- name: Install proto2cpp
@@ -54,10 +54,15 @@ jobs:
5454
- name: Prepare C++ Build
5555
run: mkdir build
5656

57-
- name: Prepare Documentation Bukd
57+
# Versioning
58+
- name: Get versioning
59+
id: get_version
60+
run: echo ::set-output name=VERSION::$(git describe --always)
61+
62+
- name: Prepare Documentation Build
5863
run: |
59-
sed -i 's/@VERSION_PATCH@/@VERSION_PATCH@_GitHub_MasterBranch/g' doxygen_config.cmake.in
60-
echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.15.8/* */proto2cpp/*" >> doxygen_config.cmake.in
64+
sed -i 's/PROJECT_NUMBER\s*= @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@/PROJECT_NUMBER = master (${{ steps.get_version.outputs.VERSION }})/g' doxygen_config.cmake.in
65+
echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.20.1/* */proto2cpp/* */flatbuffers/*" >> doxygen_config.cmake.in
6166
echo "GENERATE_TREEVIEW = YES" >> doxygen_config.cmake.in
6267
6368
- name: Configure C++ Build
@@ -69,7 +74,7 @@ jobs:
6974
run: cmake --build . --config Release -j 4
7075

7176
- name: Build Python
72-
run: python setup.py build && python setup.py sdist
77+
run: python setup.py build && python setup.py sdist
7378

7479
- name: Install Python
7580
run: python -m pip install .
@@ -95,7 +100,7 @@ jobs:
95100
build-proto3-linux64:
96101
name: Build Proto3 Linux 64
97102

98-
runs-on: ubuntu-18.04
103+
runs-on: ubuntu-22.04
99104

100105
steps:
101106
- name: Checkout OSI
@@ -115,20 +120,20 @@ jobs:
115120
id: cache-depends
116121
uses: actions/cache@v2
117122
with:
118-
path: protobuf-3.15.8
119-
key: ${{ runner.os }}-v1-depends
123+
path: protobuf-3.20.1
124+
key: ${{ runner.os }}-v2-depends
120125

121126
- name: Download ProtoBuf
122127
if: steps.cache-depends.outputs.cache-hit != 'true'
123-
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protobuf-all-3.15.8.tar.gz && tar xzvf protobuf-all-3.15.8.tar.gz
128+
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protobuf-all-3.20.1.tar.gz && tar xzvf protobuf-all-3.20.1.tar.gz
124129

125130
- name: Build ProtoBuf
126131
if: steps.cache-depends.outputs.cache-hit != 'true'
127-
working-directory: protobuf-3.15.8
132+
working-directory: protobuf-3.20.1
128133
run: ./configure DIST_LANG=cpp --prefix=/usr && make
129134

130135
- name: Install ProtoBuf
131-
working-directory: protobuf-3.15.8
136+
working-directory: protobuf-3.20.1
132137
run: sudo make install && sudo ldconfig
133138

134139
- name: Prepare C++ Build
@@ -148,7 +153,7 @@ jobs:
148153
run: cmake --build . --config Release -j 4
149154

150155
- name: Build Python
151-
run: python setup.py build && python setup.py sdist
156+
run: python setup.py build && python setup.py sdist
152157

153158
- name: Install Python
154159
run: python -m pip install .

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ osi_version.proto
2323
version.py
2424
pyproject.toml
2525

26+
compile_commands.json
27+
2628
# Eclipse-specific files, if any
2729
*.cproject
2830
*.project

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "asciidoc-resources"]
2-
path = asciidoc-resources
3-
url = https://code.asam.net/simulation/asciidoc-resources.git
41
[submodule "flatbuffers"]
52
path = flatbuffers
63
url = https://github.com/google/flatbuffers.git

0 commit comments

Comments
 (0)