-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OSGeo:master' into dymaxion
- Loading branch information
Showing
103 changed files
with
3,449 additions
and
964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'backport**' | ||
- 'dependabot**' | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docs: | ||
name: Documentation checks | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
container: ghcr.io/osgeo/proj-docs | ||
|
||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Update sphinx-rtd-theme | ||
shell: bash -l {0} | ||
run: | | ||
pip install -U "sphinx-rtd-theme>=3.0.0" | ||
- name: Print versions | ||
shell: bash -l {0} | ||
run: | | ||
python3 --version | ||
sphinx-build --version | ||
python3 -m pip list --not-required --format=columns | ||
- name: Lint .rst files | ||
shell: bash -l {0} | ||
run: | | ||
set -eu | ||
if find . -name '*.rst' | xargs grep -P '\t'; then echo 'Tabs are bad, please use four spaces in .rst files.'; false; fi | ||
if find . -name '*.rst' | xargs grep "\.\.versionadded"; then echo 'Wrong annotation. Should be .. versionadded'; false; fi | ||
if find . -name '*.rst' | xargs grep "\.\.note"; then echo 'Wrong annotation. Should be .. note'; false; fi | ||
if find . -name '*.rst' | xargs grep "\.\.warning"; then echo 'Wrong annotation. Should be .. warning'; false; fi | ||
if find . -name '*.rst' | xargs grep "\.\.codeblock"; then echo 'Wrong annotation. Should be .. codeblock'; false; fi | ||
working-directory: ./docs | ||
- name: Doxygen | ||
shell: bash -l {0} | ||
run: | | ||
make .doxygen_up_to_date | ||
working-directory: ./docs | ||
- name: Spelling | ||
shell: bash -l {0} | ||
run: | | ||
make spelling SPHINXOPTS=-W | ||
working-directory: ./docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Fedora Rawhide | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
fedora_rawhide: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
id: cache | ||
with: | ||
path: | | ||
${{ github.workspace }}/ccache.tar.gz | ||
key: ${{ runner.os }}-cache-fedora_rawhide-${{ github.run_id }} | ||
restore-keys: ${{ runner.os }}-cache-fedora_rawhide- | ||
|
||
- name: Run | ||
run: docker run -e CI -e WORK_DIR="$PWD" -v $PWD:$PWD fedora:rawhide $PWD/.github/workflows/fedora_rawhide/start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
dnf install -y cmake clang ccache ninja-build sqlite-devel libtiff-devel libcurl-devel diffutils | ||
|
||
cd "$WORK_DIR" | ||
|
||
if test -f "$WORK_DIR/ccache.tar.gz"; then | ||
echo "Restoring ccache..." | ||
(cd $HOME && tar xzf "$WORK_DIR/ccache.tar.gz") | ||
fi | ||
|
||
export CCACHE_CPP2=yes | ||
|
||
ccache -M 500M | ||
ccache -s | ||
|
||
mkdir build | ||
cd build | ||
CC=clang CXX=clang++ cmake .. \ | ||
-DEMBED_RESOURCE_FILES=ON -DUSE_ONLY_EMBEDDED_RESOURCE_FILES=ON -DUSE_CCACHE=ON -DPROJ_DB_CACHE_DIR=$HOME/.ccache .. | ||
make -j$(nproc) | ||
ctest -j$(nproc) | ||
cd .. | ||
|
||
ccache -s | ||
|
||
echo "Saving ccache..." | ||
rm -f "$WORK_DIR/ccache.tar.gz" | ||
(cd $HOME && tar czf "$WORK_DIR/ccache.tar.gz" .cache) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.