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

CI improvements #368

Closed
wants to merge 25 commits into from
Closed

CI improvements #368

wants to merge 25 commits into from

Conversation

bifurcation
Copy link
Contributor

  • Streamlined format checking, leveraging include-regex as well as check-path

@bifurcation bifurcation marked this pull request as ready for review September 9, 2023 19:12
Copy link
Contributor

@glhewett glhewett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one recommendation, which is not critical. Otherwise, LGTM

.github/workflows/main_ci.yml Show resolved Hide resolved
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DTESTING=ON -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target all --parallel 2
cmake -B build -DTESTING=ON
cmake --build build --target all
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add the --parallel 2 back. Even though we may only have once vcpu, we want to keep the compiler as busy as possible. I have always seen recommendations of cpu.count + 1.


- name: Unit Test (OpenSSL 3)
run: |
cmake --build "${{ env.CMAKE_BUILD_OPENSSL3_DIR }}" --target test
cmake --build build --target test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add --parallel 2

I won't bore you with adding this repeatedly.


- name: Build (Interop Harness)
run: |
cd cmd/interop
cmake -B build -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake -B build
cmake --build build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add --paralllel 2

brew install llvm pkg-config
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
- uses: lukka/get-cmake@latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a build environment, I would try and lock in a version.

- uses: lukka/get-cmake@latest
+ uses: lukka/[email protected]

@@ -10,7 +10,7 @@
"doctest",
"nlohmann-json"
],
"builtin-baseline": "5908d702d61cea1429b223a0b7a10ab86bad4c78",
"builtin-baseline": "962e5e39f8a25f42522f51fffc574e05a3efd26b",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this passes CI, that is great!

Copy link
Contributor

@glhewett glhewett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am seeing some warnings from the running jobs that might need to be addressed. One of them is regarding caching.

https://github.com/cisco/mlspp/actions/runs/6132855786

@bifurcation
Copy link
Contributor Author

Closing this in favor of #367. Some of the cleanup here may still be relevant, but we should get that PR tuned up and merged and then revisit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants