-
Notifications
You must be signed in to change notification settings - Fork 103
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
actions: add step for checking miral and miroil symbols map #3336
Merged
Saviq
merged 12 commits into
feature/symbols_generator
from
feature/symbol_generator_ci
Apr 19, 2024
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
57e1a4e
actions: add step for checking miral symbols map
mattkae 3223157
Installing llvm via the script'
mattkae 2b2d5ee
actions for miroil symbols too
mattkae b1af068
Improve output on symbols
mattkae 4d3eba4
New symbols check file
mattkae f392770
reporting changed symbols with an exit code
mattkae 7169146
Quick test!
mattkae fa49ce1
Revert "Quick test!"
mattkae 0ab1bdb
Getting llvm from the repo
mattkae 0fcd40b
style: combining args.diff with has_changed_symbols check when return…
mattkae 7bd3170
actions: rearranging various parts
mattkae f0062ba
minor: move apt-get build-dep after llvm install
mattkae 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,42 @@ | ||
name: Symbols Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Run: | ||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 10 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get build-dep ./ | ||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | ||
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main" | ||
sudo apt install libclang1-19 | ||
echo "MIR_SYMBOLS_MAP_GENERATOR_CLANG_SO_PATH=/usr/lib/llvm-19/lib/libclang-19.so.1" >> $GITHUB_ENV | ||
echo "MIR_SYMBOLS_MAP_GENERATOR_CLANG_LIBRARY_PATH=/usr/lib/llvm-19/lib" >> $GITHUB_ENV | ||
mattkae marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sudo apt-get build-dep ./ | ||
|
||
- name: Configure | ||
run: > | ||
cmake -B build ${{ github.workspace }} | ||
|
||
- name: Check symbols | ||
run: | | ||
RET=0 | ||
cmake --build build --target check-miral-symbols-map || RET=$? | ||
cmake --build build --target check-miroil-symbols-map || RET=$? | ||
exit $RET |
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
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
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.
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 is the expensive step :)
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.
I want the build deps so that 3rd party libraries resolve in clang, right?