Skip to content

Commit

Permalink
.github: fix git directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and peterbarker committed Feb 4, 2023
1 parent 5df7e4e commit a694b68
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_chibios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "chibios-clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
TERM: xterm
shell: 'script -q -e -c "bash {0}"'
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
python -m pip install --progress-bar off --user mavproxy
python -m pip uninstall -y pymavlink
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
TZ: Europe/Paris
shell: 'script -q -e -c "bash {0}"'
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
source ~/.bashrc
git config --global --add safe.directory /__w/ardupilot/ardupilot
./waf configure
Expand All @@ -114,6 +115,7 @@ jobs:
TZ: Europe/Paris
shell: 'script -q -e -c "bash {0}"'
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
source ~/.bashrc
case ${{matrix.os}} in
*"archlinux"*)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_linux_sbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_scripting_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: build sitl # we don't really need to build the full code, just trigger docs re-gen with --scripting-docs, timeout after 10 seconds
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
./waf configure --board sitl
timeout 10 ./waf antennatracker --scripting-docs || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: build copter ${{ matrix.toolchain }}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down Expand Up @@ -111,6 +112,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down Expand Up @@ -163,6 +165,7 @@ jobs:
- name: build heli
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
./waf configure --board sitl
./waf build --target bin/arducopter-heli
Expand Down Expand Up @@ -205,6 +208,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_sitl_periph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
- name: build sitl_periph_gps
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
./waf configure --board sitl_periph_gps
./waf build --target bin/AP_Periph
Expand Down Expand Up @@ -121,6 +122,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
kernel_ver=`uname -r`
if [ "$kernel_ver" = "5.4.0-1032-azure" ] || [ "$kernel_ver" = "5.11.4-051104-generic" ]; then echo "Unsupported Kernel $kernel_ver" && exit 0; fi;
PATH="/github/home/.local/bin:$PATH"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: build plane ${{ matrix.toolchain }}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: build rover ${{ matrix.toolchain }}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down Expand Up @@ -107,6 +108,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: build sub ${{ matrix.toolchain }}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down Expand Up @@ -105,6 +106,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: build tracker ${{ matrix.toolchain }}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down Expand Up @@ -105,6 +106,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
Tools/scripts/build_ci.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
cd base_branch
./waf configure --board ${{matrix.config}}
Expand Down Expand Up @@ -102,6 +103,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
PATH="/github/home/.local/bin:$PATH"
cd pr/
git config user.email "[email protected]"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
CI_BUILD_TARGET: ${{matrix.config}}
shell: 'script -q -e -c "bash {0}"'
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
if [[ ${{ matrix.toolchain }} == "clang" ]]; then
export CC=clang
export CXX=clang++
Expand Down

0 comments on commit a694b68

Please sign in to comment.