mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: clone full history on GitHub Actions build job, track develop
This commit is contained in:
parent
d23b6614e8
commit
d463d7d397
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -140,6 +140,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Restore depends cache
|
- name: Restore depends cache
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
@ -167,7 +168,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build source and run tests
|
- name: Build source and run tests
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add advice.detachedHead false
|
||||||
git config --global --add safe.directory "$PWD"
|
git config --global --add safe.directory "$PWD"
|
||||||
|
GIT_HEAD="$(git rev-parse HEAD)"
|
||||||
|
git checkout develop
|
||||||
|
git checkout ${GIT_HEAD}
|
||||||
CCACHE_SIZE="400M"
|
CCACHE_SIZE="400M"
|
||||||
CACHE_DIR="/cache"
|
CACHE_DIR="/cache"
|
||||||
mkdir /output
|
mkdir /output
|
||||||
|
Loading…
Reference in New Issue
Block a user