-
-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_wxgui_web_service_xy_loc
- Loading branch information
Showing
356 changed files
with
1,985 additions
and
1,151 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,12 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
if: github.repository == 'OSGeo/grass' | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y wget git gawk findutils jq | ||
sudo apt-get install -y wget git gawk findutils | ||
xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \ | ||
sudo apt-get install -y --no-install-recommends --no-install-suggests | ||
|
@@ -33,7 +33,7 @@ jobs: | |
- name: Download Coverity Build Tool | ||
run: | | ||
wget -q https://scan.coverity.com/download/cxx/linux64 \ | ||
--post-data "token=$TOKEN&project=grass" -O cov-analysis-linux64.tar.gz | ||
--post-data "token=${TOKEN}&project=grass" -O cov-analysis-linux64.tar.gz | ||
mkdir cov-analysis-linux64 | ||
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | ||
env: | ||
|
@@ -84,49 +84,29 @@ jobs: | |
- name: Build with cov-build | ||
run: | | ||
pwd | ||
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | ||
export PATH="$(pwd)/cov-analysis-linux64/bin:${PATH}" | ||
cov-build --dir cov-int make | ||
- name: Put results into Tarball | ||
run: | | ||
tar czvf grass.tgz cov-int | ||
- name: Upload Artifact of Scan Results | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: grass.tgz | ||
path: grass.tgz | ||
|
||
- name: Initialize Build in Coverity Cloud | ||
- name: Submit to Coverity Scan | ||
run: | | ||
curl -X POST \ | ||
-d version="main" \ | ||
-d description="$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --short HEAD)" \ | ||
-d email=$EMAIL \ | ||
-d token=$TOKEN \ | ||
-d file_name="grass.tgz" \ | ||
https://scan.coverity.com/projects/1038/builds/init \ | ||
| tee response | ||
version=$(head -n 3 include/VERSION | xargs | sed 's/ /./g') | ||
commit=$(git rev-parse --short HEAD) | ||
branch=$(git rev-parse --abbrev-ref HEAD) | ||
desc="Version:${version}, commit:${commit}, branch:${branch}." | ||
echo "Submitting ${desc}" | ||
desc_url_enc=$(echo "$desc" | sed 's/:/%3A/g' | sed 's/,/%2C/g' | sed 's/ /%20/g') | ||
tar czvf grass.tgz cov-int | ||
curl \ | ||
--form "token=${TOKEN}" \ | ||
--form "email=${EMAIL}" \ | ||
--form "[email protected]" \ | ||
--form "version=${version}-${commit}" \ | ||
--form "description=${desc_url_enc}" \ | ||
'https://scan.coverity.com/builds?project=grass' | ||
env: | ||
TOKEN: ${{ secrets.COVERITY_PASSPHRASE }} | ||
EMAIL: ${{ secrets.COVERITY_USER }} | ||
|
||
- name: Save Upload URL and Build ID from Initialization Response | ||
run: | | ||
echo "UPLOAD_URL=$(jq -r '.url' response)" >> $GITHUB_ENV | ||
echo "BUILD_ID=$(jq -r '.build_id' response)" >> $GITHUB_ENV | ||
- name: Upload the tarball to the Cloud | ||
run: | | ||
export COV_RES_PATH="$(pwd)/grass.tgz" | ||
curl -X PUT \ | ||
--header 'Content-Type: application/json' \ | ||
--upload-file $COV_RES_PATH \ | ||
$UPLOAD_URL | ||
- name: Trigger the build on Scan | ||
run: | | ||
curl -X PUT \ | ||
-d token=$TOKEN \ | ||
https://scan.coverity.com/projects/1038/builds/$BUILD_ID/enqueue | ||
env: | ||
TOKEN: ${{ secrets.COVERITY_PASSPHRASE }} |
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
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
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.