Skip to content

Commit

Permalink
ci: git config workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpollo committed Nov 25, 2024
1 parent 5a8738f commit da54b02
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/failsafe_sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,24 @@ jobs:
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Git ownership workaround
run: git config --system --add safe.directory '*'

- name: check environment
run: |
export
ulimit -a
- name: install emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git _emscripten_sdk
cd _emscripten_sdk
./emsdk install latest
./emsdk activate latest
- name: ${{matrix.check}}
run: |
. ./_emscripten_sdk/emsdk_env.sh
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/mavros_mission_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
#- {vehicle: "tiltrotor", mission: "VTOL_mission_1", build_type: "RelWithDebInfo"}

container:
image: ghcr.io/px4/px4-dev:1.16.0-alpha2
image: ghcr.io/px4/px4-dev:main-20241125
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
Expand All @@ -44,6 +44,7 @@ jobs:
path: ~/.ccache
key: sitl_tests-${{matrix.config.build_type}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: sitl_tests-${{matrix.config.build_type}}-ccache-

- name: setup ccache
run: |
mkdir -p ~/.ccache
Expand All @@ -59,6 +60,7 @@ jobs:
run: |
export
ulimit -a
- name: Build PX4 and sitl_gazebo-classic
env:
PX4_CMAKE_BUILD_TYPE: ${{matrix.config.build_type}}
Expand All @@ -84,6 +86,7 @@ jobs:
- name: Look at core files
if: failure()
run: gdb build/px4_sitl_default/bin/px4 px4.core -ex "thread apply all bt" -ex "quit"

- name: Upload px4 coredump
if: failure()
uses: actions/upload-artifact@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mavros_offboard_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
#- {test_file: "mavros_posix_tests_offboard_rpyrt_ctl.test", vehicle: "iris", build_type: "RelWithDebInfo"}

container:
image: ghcr.io/px4/px4-dev:1.16.0-alpha2
image: ghcr.io/px4/px4-dev:main-20241125
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
Expand All @@ -33,12 +33,14 @@ jobs:
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: sitl_tests-${{matrix.config.build_type}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: sitl_tests-${{matrix.config.build_type}}-ccache-

- name: setup ccache
run: |
mkdir -p ~/.ccache
Expand All @@ -54,6 +56,7 @@ jobs:
run: |
export
ulimit -a
- name: Build PX4 and sitl_gazebo-classic
env:
PX4_CMAKE_BUILD_TYPE: ${{matrix.config.build_type}}
Expand All @@ -79,6 +82,7 @@ jobs:
- name: Look at core files
if: failure()
run: gdb build/px4_sitl_default/bin/px4 px4.core -ex "thread apply all bt" -ex "quit"

- name: Upload px4 coredump
if: failure()
uses: actions/upload-artifact@v3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nuttx_env_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Git ownership workaround
run: git config --system --add safe.directory '*'

- name: make ${{matrix.config}}
env:
Expand Down

0 comments on commit da54b02

Please sign in to comment.