-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[WIP] Update macOS compile workflow with sim-tools #25935
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
Draft
farhangnaderi
wants to merge
12
commits into
main
Choose a base branch
from
pr-macos-sim-tools-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+46
−38
Conversation
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
10b3a3c to
f971b00
Compare
Comment on lines
21
to
75
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [macos-latest, macos-26] | ||
| config: [ | ||
| px4_fmu-v5_default, | ||
| px4_sitl | ||
| "px4_sitl gz_x500" | ||
| ] | ||
| steps: | ||
| - name: install Python 3.10 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: install Python 3.10 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.10" | ||
|
|
||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: setup | ||
| run: | | ||
| ./Tools/setup/macos.sh | ||
| - name: Initialize and update git submodules | ||
| run: | | ||
| git submodule sync --recursive | ||
| git submodule update --init --recursive --jobs 4 | ||
| - name: Prepare ccache timestamp | ||
| id: ccache_cache_timestamp | ||
| shell: cmake -P {0} | ||
| run: | | ||
| string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | ||
| message("::set-output name=timestamp::${current_date}") | ||
| - name: ccache cache files | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.ccache | ||
| key: macos_${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} | ||
| restore-keys: macos_${{matrix.config}}-ccache- | ||
| - name: setup ccache | ||
| run: | | ||
| mkdir -p ~/.ccache | ||
| echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf | ||
| echo "compression = true" >> ~/.ccache/ccache.conf | ||
| echo "compression_level = 6" >> ~/.ccache/ccache.conf | ||
| echo "max_size = 40M" >> ~/.ccache/ccache.conf | ||
| echo "hash_dir = false" >> ~/.ccache/ccache.conf | ||
| ccache -s | ||
| ccache -z | ||
| - name: setup | ||
| run: | | ||
| ./Tools/setup/macos.sh --sim-tools | ||
| - name: make ${{matrix.config}} | ||
| run: | | ||
| ccache -z | ||
| make ${{matrix.config}} | ||
| ccache -s | ||
| - name: Prepare ccache timestamp | ||
| id: ccache_cache_timestamp | ||
| shell: cmake -P {0} | ||
| run: | | ||
| string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | ||
| message("::set-output name=timestamp::${current_date}") | ||
| - name: ccache cache files | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.ccache | ||
| key: macos_${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} | ||
| restore-keys: macos_${{matrix.config}}-ccache- | ||
|
|
||
| - name: setup ccache | ||
| run: | | ||
| mkdir -p ~/.ccache | ||
| echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf | ||
| echo "compression = true" >> ~/.ccache/ccache.conf | ||
| echo "compression_level = 6" >> ~/.ccache/ccache.conf | ||
| echo "max_size = 40M" >> ~/.ccache/ccache.conf | ||
| echo "hash_dir = false" >> ~/.ccache/ccache.conf | ||
| ccache -s | ||
| ccache -z | ||
| - name: make ${{matrix.config}} | ||
| run: | | ||
| ccache -z | ||
| make ${{matrix.config}} | ||
| ccache -s |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
0e0583e to
a260852
Compare
Added initialization and update of git submodules.
Removed the 'environment' key from the workflow matrix.
Set up Qt5 path for Gazebo in macOS setup script.
a260852 to
18c0352
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Relevant PR #25204
I am trying to reproduce if any issues upstream!