fix: clone full history on GitHub Actions build job, track develop

This commit is contained in:
Kittywhiskers Van Gogh 2024-11-24 12:18:21 +00:00
parent d23b6614e8
commit d463d7d397
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -140,6 +140,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Restore depends cache
uses: actions/cache/restore@v4
@ -167,7 +168,11 @@ jobs:
- name: Build source and run tests
run: |
git config --global --add advice.detachedHead false
git config --global --add safe.directory "$PWD"
GIT_HEAD="$(git rev-parse HEAD)"
git checkout develop
git checkout ${GIT_HEAD}
CCACHE_SIZE="400M"
CACHE_DIR="/cache"
mkdir /output