mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system: consistently mark git directories safe
Even on platforms that don't have the new git version, yet. And using the convoluted way to create an environment variable that should point to our checked out tree in the GitHub Action. The more obvious ways have resulted in failed builds for obscure reasons. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8ead205c8c
commit
c1e7cd1428
11 changed files with 46 additions and 13 deletions
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -60,8 +60,12 @@ jobs:
|
|||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
||||
run: |
|
||||
cd ..
|
||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
||||
bash -e -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue