Skip to content
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

[#3] Enable Cirrus CI #561

Merged
merged 6 commits into from
Dec 20, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@

---

#
# Global environment variables
#

env:
CI_ENABLED: true
# RUSTFLAGS: "-C debug-assertions"

#
# Filter to run the CI only on the main branch or for pull request to the main branch
#

only_if: $CI_ENABLED && !$CIRRUS_PR_DRAFT && ( $CIRRUS_BRANCH == 'main' || ($CIRRUS_PR != '' && $CIRRUS_BASE_BRANCH == 'main'))

#
# Templates
#
Expand Down Expand Up @@ -93,7 +107,7 @@ iox2_common_build_and_test_no_doc_tests_release_template: &IOX2_COMMON_BUILD_AND
iox2_ffi_common_debug_template: &IOX2_FFI_COMMON_DEBUG
ffi_script:
- ./internal/scripts/ci_build_and_install_iceoryx_hoofs.sh
- cmake -S . -B target/ffi/build -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=target/ffi/install -DCMAKE_INSTALL_PREFIX="$( pwd )/target/iceoryx/install"
- cmake -S . -B target/ffi/build -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=target/ffi/install -DCMAKE_INSTALL_PREFIX="$( pwd )/target/iceoryx/install" -DRUST_BUILD_ARTIFACT_PATH="$( pwd )/target/debug"
- cmake --build target/ffi/build
- cmake --install target/ffi/build
- target/ffi/build/tests/iceoryx2-c-tests
Expand All @@ -106,7 +120,7 @@ iox2_ffi_common_debug_template: &IOX2_FFI_COMMON_DEBUG
iox2_ffi_common_release_template: &IOX2_FFI_COMMON_RELEASE
ffi_script:
- ./internal/scripts/ci_build_and_install_iceoryx_hoofs.sh
- cmake -S . -B target/ffi/build -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=target/ffi/install -DCMAKE_INSTALL_PREFIX="$( pwd )/target/iceoryx/install"
- cmake -S . -B target/ffi/build -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=target/ffi/install -DCMAKE_INSTALL_PREFIX="$( pwd )/target/iceoryx/install" -DRUST_BUILD_ARTIFACT_PATH="$( pwd )/target/release"
- cmake --build target/ffi/build
- cmake --install target/ffi/build
- target/ffi/build/tests/iceoryx2-c-tests
Expand All @@ -130,19 +144,6 @@ iox2_freebsd_setup_template: &IOX2_FREEBSD_SETUP
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --no-modify-path
- rustup component add clippy rustfmt

#
# Filter to run the CI only on the main branch or for pull request to the main branch
#

only_if: false && ( $CIRRUS_BRANCH == 'main' || ($CIRRUS_PR != '' && $CIRRUS_BASE_BRANCH == 'main'))

#
# Global environment variables
#

# env:
# RUSTFLAGS: "-C debug-assertions"

#
# Preflight-Check with Ubuntu x86 stable debug
#
Expand Down
Loading
Loading