mirror of
https://github.com/biojppm/c4core.git
synced 2026-01-18 21:41:18 +01:00
ci: fix manual checkout
This commit is contained in:
6
.github/workflows/clang.yml
vendored
6
.github/workflows/clang.yml
vendored
@@ -159,10 +159,14 @@ jobs:
|
||||
- name: checkout
|
||||
run: |
|
||||
set -x
|
||||
echo $GITHUB_REF
|
||||
echo $GITHUB_HEAD_REF
|
||||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} # https://stackoverflow.com/questions/58033366
|
||||
echo $branch
|
||||
git init -q .
|
||||
git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
|
||||
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
|
||||
git fetch origin $GITHUB_HEAD_REF
|
||||
git fetch origin $branch
|
||||
git reset --hard FETCH_HEAD
|
||||
git submodule update --init --recursive
|
||||
- run: c4core-install ${{matrix.cxx}}
|
||||
|
||||
24
.github/workflows/gcc.yml
vendored
24
.github/workflows/gcc.yml
vendored
@@ -53,10 +53,14 @@ jobs:
|
||||
- name: checkout
|
||||
run: |
|
||||
set -x
|
||||
echo $GITHUB_REF
|
||||
echo $GITHUB_HEAD_REF
|
||||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} # https://stackoverflow.com/questions/58033366
|
||||
echo $branch
|
||||
git init -q .
|
||||
git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
|
||||
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
|
||||
git fetch origin $GITHUB_HEAD_REF
|
||||
git fetch origin $branch
|
||||
git reset --hard FETCH_HEAD
|
||||
git submodule update --init --recursive
|
||||
- run: c4core-install ${{matrix.cxx}}
|
||||
@@ -105,10 +109,14 @@ jobs:
|
||||
- name: checkout
|
||||
run: |
|
||||
set -x
|
||||
echo $GITHUB_REF
|
||||
echo $GITHUB_HEAD_REF
|
||||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} # https://stackoverflow.com/questions/58033366
|
||||
echo $branch
|
||||
git init -q .
|
||||
git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
|
||||
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
|
||||
git fetch origin $GITHUB_HEAD_REF
|
||||
git fetch origin $branch
|
||||
git reset --hard FETCH_HEAD
|
||||
git submodule update --init --recursive
|
||||
- run: c4core-install ${{matrix.cxx}}
|
||||
@@ -185,10 +193,14 @@ jobs:
|
||||
- name: checkout
|
||||
run: |
|
||||
set -x
|
||||
echo $GITHUB_REF
|
||||
echo $GITHUB_HEAD_REF
|
||||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} # https://stackoverflow.com/questions/58033366
|
||||
echo $branch
|
||||
git init -q .
|
||||
git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
|
||||
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
|
||||
git fetch origin $GITHUB_HEAD_REF
|
||||
git fetch origin $branch
|
||||
git reset --hard FETCH_HEAD
|
||||
git submodule update --init --recursive
|
||||
- run: c4core-install ${{matrix.cxx}}
|
||||
@@ -293,10 +305,14 @@ jobs:
|
||||
- name: checkout
|
||||
run: |
|
||||
set -x
|
||||
echo $GITHUB_REF
|
||||
echo $GITHUB_HEAD_REF
|
||||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} # https://stackoverflow.com/questions/58033366
|
||||
echo $branch
|
||||
git init -q .
|
||||
git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169
|
||||
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
|
||||
git fetch origin $GITHUB_HEAD_REF
|
||||
git fetch origin $branch
|
||||
git reset --hard FETCH_HEAD
|
||||
git submodule update --init --recursive
|
||||
- name: install gcc-arm-linux-gnueabihf
|
||||
|
||||
Reference in New Issue
Block a user