Skip to content

Commit

Permalink
[github] Use sparse checkout & shallow clone everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed May 24, 2024
1 parent 666703e commit 5c0d825
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/appstream-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout: |
packaging/app.organicmaps.desktop.metainfo.xml
- name: Install appstream validator and flatpak Builder
shell: bash
Expand Down
51 changes: 50 additions & 1 deletion .github/workflows/coverage-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,56 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 100 # enough to get all commits for the current day
fetch-depth: 1
sparse-checkout: |
3party
qt
base
cmake
coding
cppjansson
data
descriptions
drape
drape_frontend
editor
feature_list
ge0
generator
geometry
indexer
kml
map
openlr
packaging
platform
poly_borders
pyhelpers
qt
qt_testfrm
routing
routing_common
search
shaders
sking_generator
std
storage
traffic
testing
tools
topography_generator
track_analyzing
track_generator
tracking
traffic
transit
CMakeLists.txt
configure.sh
defines.hpp
gcovr.cfg
omim_config.h
precompiled_headers.hpp
private_default.h
- name: Parallel submodules checkout
shell: bash
Expand Down
60 changes: 59 additions & 1 deletion .github/workflows/linux-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 100 # enough to get all commits for the current day
fetch-depth: 1
sparse-checkout: "3party\nqt\nbase\ncmake\ncoding\ncppjansson\ndata\ndescriptions\n\
drape\ndrape_frontend\neditor\nfeature_list\nge0\ngenerator\ngeometry\n\
indexer\nkml\nmap\nopenlr\npackaging\nplatform\npoly_borders\npyhelpers\n\
qt\nqt_testfrm\nrouting\nrouting_common\nsearch\nshaders\nsking_generator\n\
std\nstorage\ntraffic\ntesting\ntools\ntopography_generator\ntrack_analyzing\n\
track_generator\ntracking\ntraffic\ntransit\nCMakeLists.txt\nconfigure.sh\n\
defines.hpp\ngcovr.cfg\nomim_config.h\nprecompiled_headers.hpp\nprivate_default.h"

- name: Parallel submodules checkout
shell: bash
Expand Down Expand Up @@ -114,6 +121,57 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1 # This job is not releasing anything so the exact version string doesn't matter
sparse-checkout: |
3party
qt
base
cmake
coding
cppjansson
data
descriptions
drape
drape_frontend
editor
feature_list
ge0
generator
geometry
indexer
kml
map
openlr
packaging
platform
poly_borders
pyhelpers
qt
qt_testfrm
routing
routing_common
search
shaders
sking_generator
std
storage
traffic
testing
tools
topography_generator
track_analyzing
track_generator
tracking
traffic
transit
CMakeLists.txt
configure.sh
defines.hpp
gcovr.cfg
omim_config.h
precompiled_headers.hpp
private_default.h
- name: Parallel submodules checkout
shell: bash
Expand Down
1 change: 1 addition & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ usage() {
}

setup_opensource() {
mkdir -p "$(dirname ${PRIVATE_NETWORK_CONFIG})" # Ensure operation in case of a sparse checkout
echo "Initializing repository with default values in Open-Source mode."
cat "$DEFAULT_PRIVATE_HEADER" > "$BASE_PATH/$PRIVATE_HEADER"
echo 'ext {
Expand Down

0 comments on commit 5c0d825

Please sign in to comment.