Skip to content

Commit

Permalink
CI: fix manual git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Jul 6, 2024
1 parent dcd199c commit 03565ec
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ jobs:
#... so we checkout manually:
- name: checkout
run: |
git clone --recursive https://github.com/biojppm/c4core .
set -x
echo $GITHUB_SERVER_URL
echo $GITHUB_REPOSITORY
echo $GITHUB_HEAD_REF
git init -q .
git remote add $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch origin $GITHUB_HEAD_REF
git reset --hard FETCH_HEAD
git submodule update --init --recursive
- run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
- run: c4core-install ${{matrix.cxx}}
- {name: show info, run: source .github/setenv.sh && c4_show_info}
Expand Down
40 changes: 36 additions & 4 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ jobs:
#... so we checkout manually:
- name: checkout
run: |
git clone --recursive https://github.com/biojppm/c4core .
set -x
echo $GITHUB_SERVER_URL
echo $GITHUB_REPOSITORY
echo $GITHUB_HEAD_REF
git init -q .
git remote add $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch origin $GITHUB_HEAD_REF
git reset --hard FETCH_HEAD
git submodule update --init --recursive
- run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
- run: c4core-install ${{matrix.cxx}}
- {name: show info, run: source .github/setenv.sh && c4_show_info}
Expand Down Expand Up @@ -99,7 +107,15 @@ jobs:
#... so we checkout manually:
- name: checkout
run: |
git clone --recursive https://github.com/biojppm/c4core .
set -x
echo $GITHUB_SERVER_URL
echo $GITHUB_REPOSITORY
echo $GITHUB_HEAD_REF
git init -q .
git remote add $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch origin $GITHUB_HEAD_REF
git reset --hard FETCH_HEAD
git submodule update --init --recursive
- run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
- run: c4core-install ${{matrix.cxx}}
- {name: show info, run: source .github/setenv.sh && c4_show_info}
Expand Down Expand Up @@ -174,7 +190,15 @@ jobs:
#... so we checkout manually:
- name: checkout
run: |
git clone --recursive https://github.com/biojppm/c4core .
set -x
echo $GITHUB_SERVER_URL
echo $GITHUB_REPOSITORY
echo $GITHUB_HEAD_REF
git init -q .
git remote add $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch origin $GITHUB_HEAD_REF
git reset --hard FETCH_HEAD
git submodule update --init --recursive
- run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
- run: c4core-install ${{matrix.cxx}}
- {name: show info, run: source .github/setenv.sh && c4_show_info}
Expand Down Expand Up @@ -277,7 +301,15 @@ jobs:
#... so we checkout manually:
- name: checkout
run: |
git clone --recursive https://github.com/biojppm/c4core .
set -x
echo $GITHUB_SERVER_URL
echo $GITHUB_REPOSITORY
echo $GITHUB_HEAD_REF
git init -q .
git remote add $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch origin $GITHUB_HEAD_REF
git reset --hard FETCH_HEAD
git submodule update --init --recursive
- run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
- name: install gcc-arm-linux-gnueabihf
run: |
Expand Down

0 comments on commit 03565ec

Please sign in to comment.