AG and 2031 #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 Klepsydra Technologies AG | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Check build | |
on: | |
push: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
buildrelease: | |
name: Vanilla Release | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/klepsydra-technologies/kpsrbase:1.0.0 | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
uses: ./.github/actions/deps/ | |
- name: Build project | |
run: | | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
python3 -m pip install build --upgrade | |
python3 -m build | |
python3 -m pip install -I --find-links dist kpsr_codegen | |
- name: Unit tests | |
timeout-minutes: 10 | |
run: | | |
python3 -m pip install pytest==7.0 --upgrade | |
pytest | |
- name: Test codegen against klepsydra core | |
timeout-minutes: 10 | |
run: | | |
python3 -m pip install -I --find-links dist kpsr_codegen | |
mkdir build_cpptesting | |
cd build_cpptesting | |
cmake -DKPSR_WITH_ZMQ=On ../cpp_testing | |
cmake --build . | |
make test | |
- name: Store whl packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: kpsr-codegen-whl | |
path: dist/*.whl | |
- name: Store tgz packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: kpsr-codegen-tgz | |
path: dist/*.tar.gz | |