Skip to content

Add capnproto as submodule #1869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 57 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
BUILD_TYPE: release
run: ./.github/scripts/build.sh
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh


Format:
Expand All @@ -47,6 +53,8 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- name: Test
Expand All @@ -62,6 +70,8 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- name: Test
Expand All @@ -79,14 +89,20 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
#In order to get compilation warnings produced per source file, we must do a non-IPO build
#We also turn warnings into errors for this target by doing a strict compile
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_STRICT_COMPILE=on -DVTR_IPO_BUILD=off"
run: ./.github/scripts/build.sh
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh


Regression:
Expand Down Expand Up @@ -128,12 +144,17 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: ${{ matrix.params }}
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2

Expand Down Expand Up @@ -164,14 +185,19 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on'
BUILD_TYPE: debug
LSAN_OPTIONS: 'exitcode=42' #Use a non-standard exit code to ensure LSAN errors are detected
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
# We skip QoR since we are only checking for errors in sanitizer runs
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
Expand All @@ -186,13 +212,18 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on'
BUILD_TYPE: debug
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
./run_reg_test.py odin_reg_basic -show_failures -j2

Expand All @@ -206,12 +237,17 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
BUILD_TYPE: release
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
./utils/vqm2blif/test/scripts/test_vqm2blif.sh

Expand All @@ -234,13 +270,18 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on -DODIN_USE_YOSYS=ON'
BUILD_TYPE: debug
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2

Expand All @@ -266,14 +307,20 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
MATRIX_EVAL: ${{ matrix.eval }}
BUILD_TYPE: ${{ matrix.build }}
run: ./.github/scripts/build.sh
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh


Coverity:
Expand All @@ -296,11 +343,17 @@ jobs:
with:
python-version: 3.6
- uses: actions/checkout@v2
with:
submodules: recursive
- run: ./.github/scripts/install_dependencies.sh

- uses: hendrikmuhs/ccache-action@v1

- name: Test
env:
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on'
_COVERITY_URL: 'https://scan.coverity.com/download/linux64'
_COVERITY_MD5: 'd0d7d7df9d6609e578f85096a755fb8f'
run: ./.github/scripts/build.sh
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./.github/scripts/build.sh
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libs/EXTERNAL/capnproto"]
path = libs/EXTERNAL/capnproto
url = https://github.com/capnproto/capnproto.git
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export CTEST_OUTPUT_ON_FAILURE=TRUE
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),clean)
all $(MAKECMDGOALS):
@ git submodule update --init --recursive
ifneq ($(BUILD_DIR),build)
ln -sf $(BUILD_DIR) build
endif
Expand Down
1 change: 1 addition & 0 deletions libs/EXTERNAL/capnproto
Submodule capnproto added at 3f44c6
76 changes: 0 additions & 76 deletions libs/EXTERNAL/capnproto/.gitignore

This file was deleted.

77 changes: 0 additions & 77 deletions libs/EXTERNAL/capnproto/.travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions libs/EXTERNAL/capnproto/CMakeLists.txt

This file was deleted.

23 changes: 0 additions & 23 deletions libs/EXTERNAL/capnproto/CONTRIBUTORS

This file was deleted.

Loading