Skip to content

Copy OE into install dir #1125

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 7 commits into from
Apr 30, 2020
Merged

Copy OE into install dir #1125

merged 7 commits into from
Apr 30, 2020

Conversation

eddyashton
Copy link
Member

2-part fix for #1120:

  • When building install folder in ADO, include the current OE installed dir
  • When trying to find the OE package in CMake, prefer a local instance if found

Sample release available here until I delete it: https://github.com/microsoft/CCF/releases/tag/untagged-bfa184e16a4d52090092

This only increases the size of our install package slightly - from 55.4MB in 0.9.3 to 63.5MB on current master with OE.

@eddyashton eddyashton requested a review from a team as a code owner April 30, 2020 13:05
@ghost
Copy link

ghost commented Apr 30, 2020

install_oe_deps@7840 aka 20200430.26 vs master ewma over 50 builds from 7360 to 7824
images

else
echo "Git tag ($git_tag) is later than CMake version ($cmake_version) - please update CMake version!"
exit 1
echo "Skipping check - ${git_tag} doesn't look like semver"
Copy link
Contributor

Choose a reason for hiding this comment

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

semver? semantic versioning?

cmake_version=$(grep CCF_VERSION CMakeLists.txt | grep -Po "(\d)+(\.(\d)+)*")
# Check git tag is <= CMake version. Use sort --version-sort to handle semver (0.9 < 0.10)
if echo "$git_tag $cmake_version" | tr " " "\n" | sort --version-sort -c ; then
echo "Git tag ($git_tag) is safely <= CMake version ($cmake_version)"
Copy link
Member

Choose a reason for hiding this comment

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

Is < ever a good thing? It seems like we would want strict equality?

# Find OpenEnclave package, preferring local version if found (in the install
# case)
find_package(
OpenEnclave 0.9 CONFIG PATHS ${CMAKE_CURRENT_LIST_DIR}/../openenclave
Copy link
Member

Choose a reason for hiding this comment

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

Hoist out version to a variable?

@achamayou achamayou merged commit 4b15344 into master Apr 30, 2020
@achamayou achamayou deleted the install_oe_deps branch April 30, 2020 17:53
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.

3 participants