-
-
Notifications
You must be signed in to change notification settings - Fork 913
NP-637 conan v2 curaengine 5 9 #2183
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
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0b6f65a
Port Conan v2 changes to 5.9 branch
jellespijker 9062500
Add libsystemd requirement for Linux builds
jellespijker 67bb4fc
Add package.json configuration for Emscripten build
jellespijker d04d469
Switch NPM package workflow to use conan-version trigger
jellespijker a338422
Add version to workflow
jellespijker ef0a75a
Also trigger on npm-package changes
jellespijker 681466e
Also trigger on npm-package changes
jellespijker ecdea2f
integrate npm-package with conan-package from workflow automation
jellespijker 5c602ec
Rename conan-package workflow and update paths.
jellespijker 659d18c
trigger workflow
jellespijker 9d1d9be
Sanitize version number for npm compatibility
jellespijker 0bf1c78
Formatting
jellespijker 306e88a
added newline
jellespijker fa08533
removed new line
jellespijker 0a5ad05
Restrict npm-package workflow trigger branches.
jellespijker 8a77e66
Remove libsystemd dependency for Linux builds
jellespijker 262c57f
Addressed review comments
jellespijker 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -11,97 +11,4 @@ on: | |
| jobs: | ||
| lint-tidier-job: | ||
| name: Auto-apply clang-tidy | ||
|
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - uses: technote-space/get-diff-action@v6 | ||
| with: | ||
| PATTERNS: | | ||
| include/**/*.h* | ||
| src/**/*.c* | ||
|
|
||
| - name: Setup Python and pip | ||
| if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes. | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: 3.11.x | ||
| cache: "pip" | ||
| cache-dependency-path: .github/workflows/requirements-linter.txt | ||
|
|
||
| - name: Install Python requirements for runner | ||
| if: env.GIT_DIFF && !env.MATCHED_FILES | ||
| run: pip install -r .github/workflows/requirements-linter.txt | ||
|
|
||
| # NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest. | ||
| # This is maybe because grub caches the disk it uses last time, which is recreated each time. | ||
| - name: Install Linux system requirements | ||
| if: ${{ runner.os == 'Linux' }} | ||
| run: | | ||
| sudo rm /var/cache/debconf/config.dat | ||
| sudo dpkg --configure -a | ||
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
| sudo apt update | ||
| sudo apt upgrade | ||
| sudo apt install build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev pkg-config -y | ||
|
|
||
| - name: Install GCC-132 on ubuntu | ||
| run: | | ||
| sudo apt install g++-13 gcc-13 -y | ||
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 | ||
| sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13 | ||
|
|
||
| - name: Create the default Conan profile | ||
| run: conan profile new default --detect | ||
|
|
||
| - name: Get Conan configuration | ||
| run: | | ||
| conan config install https://github.com/Ultimaker/conan-config.git | ||
| conan config install https://github.com/Ultimaker/conan-config.git -a "-b runner/${{ runner.os }}/${{ runner.arch }}" | ||
|
|
||
| - name: Install dependencies | ||
| run: conan install . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} -o enable_testing=True -s build_type=Release --build=missing --update -g GitHubActionsRunEnv -g GitHubActionsBuildEnv | ||
|
|
||
| - name: Set Environment variables from Conan install (bash) | ||
| if: ${{ runner.os != 'Windows' }} | ||
| run: | | ||
| . ./activate_github_actions_runenv.sh | ||
| . ./activate_github_actions_buildenv.sh | ||
| working-directory: build/Release/generators | ||
|
|
||
| - name: Build CuraEngine and tests | ||
| run: | | ||
| cmake --preset release | ||
| cmake --build --preset release | ||
|
|
||
| - name: Create results directory | ||
| run: mkdir linter-result | ||
|
|
||
| - name: Diagnose file(s) | ||
| if: env.GIT_DIFF && !env.MATCHED_FILES | ||
| continue-on-error: true | ||
| run: | | ||
| clang-tidy -p ./build/Release/ --config-file=.clang-tidy ${{ env.GIT_DIFF_FILTERED }} --export-fixes=linter-result/fixes.yml | ||
|
|
||
| - name: Save PR metadata | ||
| run: | | ||
| echo ${{ github.event.number }} > linter-result/pr-id.txt | ||
| echo ${{ github.event.pull_request.head.repo.full_name }} > linter-result/pr-head-repo.txt | ||
| echo ${{ github.event.pull_request.head.sha }} > linter-result/pr-head-sha.txt | ||
|
|
||
| - uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: linter-result | ||
| path: linter-result/ | ||
|
|
||
| - name: Run clang-tidy-pr-comments action | ||
| uses: platisd/[email protected] | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| clang_tidy_fixes: linter-result/fixes.yml | ||
| request_changes: true | ||
| suggestions_per_comment: 30 | ||
| uses: ultimaker/cura-workflows/.github/workflows/lint-tidier.yml@main | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.