-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adds workflow for manylinux wheel creation. #248
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ee1a976
Adds workflow for manylinux wheel creation.
francocipollone bcc1e5e
Removes old workflow.
francocipollone 7fe6230
Removes old find_package for fmt
francocipollone 484dc24
Renames artifact.
francocipollone b1e6716
Points to python-cmake-wheel repo in maliput org.
francocipollone 1287658
Adds find_package gflags in app cmake file.
francocipollone 8be0add
Wheel resources too.
francocipollone 149f942
Adds TODO comment
francocipollone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Wheel Generation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
PACKAGE_NAME: maliput_malidrive | ||
COLCON_WS: maliput_ws | ||
PYTHON_VERSION: cp38-cp38 | ||
CMAKE_COMMAND_ENV: /opt/_internal/cpython-3.8.18/bin/cmake | ||
RETENTION_DAYS: 7 | ||
|
||
# Cancel previously running PR jobs | ||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
manylinux2014: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/maliput/manylinux2014_maliput:latest | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ${{ env.COLCON_WS }}/src/${{ env.PACKAGE_NAME }} | ||
# clone public dependencies | ||
- name: git clone maliput | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }}/src | ||
run: git clone https://github.com/maliput/maliput | ||
- name: colcon graph | ||
run: /opt/python/${PYTHON_VERSION}/bin/colcon graph | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }} | ||
# colcon build | ||
- name: colcon build | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }} | ||
run: | | ||
source /colcon_builds/install/setup.bash; | ||
PATH=/opt/python/${PYTHON_VERSION}/bin:$PATH \ | ||
/opt/python/${PYTHON_VERSION}/bin/colcon build --packages-up-to ${PACKAGE_NAME} \ | ||
--cmake-args \ | ||
' -DWHEEL_GENERATION=On' \ | ||
' -DBUILD_TESTING=Off' \ | ||
' -DPython3_EXECUTABLE=/opt/python/${{ env.PYTHON_VERSION }}/bin/python3' \ | ||
--event-handlers=console_direct+ | ||
# List wheel output | ||
- name: list wheel output | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }} | ||
run: ls build/${PACKAGE_NAME}/wheel | ||
# Run auditwheel repair | ||
- name: auditwheel repair | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }} | ||
run: | | ||
source install/setup.bash; | ||
auditwheel repair \ | ||
--plat manylinux2014_x86_64 \ | ||
--wheel-dir build/${PACKAGE_NAME}/wheel/repaired \ | ||
build/${PACKAGE_NAME}/wheel/*.whl | ||
# List repaired wheel output | ||
- name: list repaired wheel output | ||
shell: bash | ||
working-directory: ${{ env.COLCON_WS }} | ||
run: ls build/${PACKAGE_NAME}/wheel/repaired | ||
# Upload repaired wheel as artifact | ||
- name: upload wheels as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: maliput_malidrive_manylinux2014_x86_64 | ||
path: ${{ env.COLCON_WS }}/build/${{ env.PACKAGE_NAME }}/wheel/repaired | ||
retention-days: ${{ env.RETENTION_DAYS }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import os | ||
|
||
def get_plugin_path(): | ||
# return this location. It is expected to be the plugin located in this same location | ||
return os.path.dirname(os.path.abspath(__file__)) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
find_package(gflags REQUIRED) | ||
|
||
add_library(log_level_flag INTERFACE) | ||
target_sources( | ||
log_level_flag | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be moved to src/applications/CMakelists.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.