-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/GenericMappingTools/gmt
- Loading branch information
Showing
15 changed files
with
80 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Setup vcpkg (Windows) | ||
uses: dawidd6/[email protected] | ||
|
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 |
---|---|---|
|
@@ -23,11 +23,11 @@ jobs: | |
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/lychee-action@v1.9.3 | ||
uses: lycheeverse/lychee-action@v1.10.0 | ||
with: | ||
# 429: Too many requests | ||
args: > | ||
|
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 |
---|---|---|
|
@@ -114,7 +114,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Install vcpkg libraries | ||
run: bash ci/install-dependencies-windows.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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Check PSL_strings.h | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Install GMT dependencies | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Setup vcpkg (Windows) | ||
uses: dawidd6/[email protected] | ||
|
@@ -157,7 +157,7 @@ jobs: | |
echo "${INSTALLDIR}/bin" >> $GITHUB_PATH | ||
- name: Checkout the gh-pages branch in a separate folder | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
ref: gh-pages | ||
# Checkout to this folder instead of the current one | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Setup data version control (DVC) | ||
uses: iterative/[email protected] | ||
|
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,7 +17,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Install cppcheck | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Setup data version control (DVC) | ||
uses: iterative/[email protected] | ||
|
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,7 +17,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Find and report known failures | ||
run: | | ||
|
@@ -29,5 +29,5 @@ jobs: | |
gh issue create --title "$title" --body-file report.md | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ github.token }} | ||
|
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,53 +17,59 @@ jobs: | |
scm-check: | ||
name: SCM Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Check the latest release | ||
id: scm | ||
run: | | ||
scm_version_in_gmt=8.0.0 | ||
- name: Check the latest release | ||
id: scm | ||
run: | | ||
scm_version_in_gmt=8.0.0 | ||
# Get version string and date from Zenodo API | ||
# https://doi.org/10.5281/zenodo.1243862 | ||
scm_version=$(curl -Ls https://zenodo.org/api/records/1243862 | jq '.metadata.version' | sed 's/"//g') | ||
scm_version_date=$(curl -Ls https://zenodo.org/api/records/1243862 | jq '.metadata.publication_date' | sed 's/"//g') | ||
echo "SCM version ${scm_version} (${scm_version_date})" | ||
# Get version string and date from Zenodo API | ||
# https://doi.org/10.5281/zenodo.1243862 | ||
scm_version=$(curl -Ls https://zenodo.org/api/records/1243862 | jq '.metadata.version' | sed 's/"//g') | ||
scm_version_date=$(curl -Ls https://zenodo.org/api/records/1243862 | jq '.metadata.publication_date' | sed 's/"//g') | ||
echo "SCM version ${scm_version} (${scm_version_date})" | ||
# Set output of the current step | ||
echo "scm_version=${scm_version}" >> $GITHUB_OUTPUT | ||
echo "scm_version_date=${scm_version_date}" >> $GITHUB_OUTPUT | ||
if [ "${scm_version}" != ${scm_version_in_gmt} ]; then | ||
echo "The latest SCM version (${scm_version}) is different from the one in GMT (${scm_version_in_gmt})!" | ||
echo "error_code=2" >> $GITHUB_OUTPUT | ||
fi | ||
# Set output of the current step | ||
echo "scm_version=${scm_version}" >> $GITHUB_OUTPUT | ||
echo "scm_version_date=${scm_version_date}" >> $GITHUB_OUTPUT | ||
if [ "${scm_version}" != ${scm_version_in_gmt} ]; then | ||
echo "The latest SCM version (${scm_version}) is different from the one in GMT (${scm_version_in_gmt})!" | ||
echo "error_code=2" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create an update request | ||
if: ${{ steps.scm.outputs.error_code == 2 }} | ||
run: | | ||
title="New ScientificColourMaps version ${{ steps.scm.outputs.scm_version }} found" | ||
cat > report.md << 'EOF' | ||
A new Scientific Colour Maps release was found. | ||
- name: Create an update request | ||
if: ${{ steps.scm.outputs.error_code == 2 }} | ||
uses: nashmaniac/[email protected] | ||
with: | ||
title: New ScientificColourMaps version ${{ steps.scm.outputs.scm_version }} found | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
body: | | ||
A new Scientific Colour Maps release was found. | ||
- website: https://www.fabiocrameri.ch/colourmaps.php | ||
- version: ${{ steps.scm.outputs.scm_version }} | ||
- date: ${{ steps.scm.outputs.scm_version_date }} | ||
- website: https://www.fabiocrameri.ch/colourmaps.php | ||
- version: ${{ steps.scm.outputs.scm_version }} | ||
- date: ${{ steps.scm.outputs.scm_version_date }} | ||
Todo list: | ||
Todo list: | ||
- [ ] Download latest ScientificColourMapsV.zip file from https://doi.org/10.5281/zenodo.1243862 | ||
to a folder, e.g. ~/Downloads/ScientificColourMapsV, where V is the version number (e.g. 7). | ||
- [ ] Run `./admin/build-scientific-colors-cpt.sh ~/Downloads/ScientificColourMapsV/` to update CPTs. | ||
- [ ] Move newly generated CPTs to `share/cpt` using `mv ~/Downloads/ScientificColourMapsV/gmt_cpts/* share/cpt/` | ||
- [ ] Make sure to update the following files: | ||
- [ ] Version number in `admin/build-scientific-colors-cpt.sh` and `.github/workflows/scm-check.yml` | ||
- [ ] List of colour maps in `src/gmt_cpt_masters.h` using lines in `/tmp/cpt_strings.txt` (only if new colour maps were added) | ||
- [ ] Counts of colour maps in `doc/rst/source/reference/cpts.rst` (only if new colour maps were added) | ||
- [ ] List of colour maps and counts in `doc/scripts/GMT_App_M_1*.sh` (only if new colour maps were added) | ||
- [ ] Update the associated `doc/scripts/GMT_App_M_1*.ps` file(s) | ||
- [ ] Commit all changes and open a PR | ||
- [ ] Download latest ScientificColourMapsV.zip file from https://doi.org/10.5281/zenodo.1243862 | ||
to a folder, e.g. ~/Downloads/ScientificColourMapsV, where V is the version number (e.g. 7). | ||
- [ ] Run `./admin/build-scientific-colors-cpt.sh ~/Downloads/ScientificColourMapsV/` to update CPTs. | ||
- [ ] Move newly generated CPTs to `share/cpt` using `mv ~/Downloads/ScientificColourMapsV/gmt_cpts/* share/cpt/` | ||
- [ ] Make sure to update the following files: | ||
- [ ] Version number in `admin/build-scientific-colors-cpt.sh` and `.github/workflows/scm-check.yml` | ||
- [ ] List of colour maps in `src/gmt_cpt_masters.h` using lines in `/tmp/cpt_strings.txt` (only if new colour maps were added) | ||
- [ ] Counts of colour maps in `doc/rst/source/reference/cpts.rst` (only if new colour maps were added) | ||
- [ ] List of colour maps and counts in `doc/scripts/GMT_App_M_1*.sh` (only if new colour maps were added) | ||
- [ ] Update the associated `doc/scripts/GMT_App_M_1*.ps` file(s) | ||
- [ ] Commit all changes and open a PR | ||
**Note**: If new CPTs were added (check using `ls ~/Downloads/ScientificColourMaps`), update the | ||
`admin/build-scientific-colors-cpt.sh` script first to include the new CPTs, and then rerun it again. | ||
EOF | ||
**Note**: If new CPTs were added (check using `ls ~/Downloads/ScientificColourMaps`), update the | ||
`admin/build-scientific-colors-cpt.sh` script first to include the new CPTs, and then rerun it again. | ||
gh issue create --title "${title}" --body-file report.md | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
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 |
---|---|---|
|
@@ -54,13 +54,13 @@ jobs: | |
- name: Linux | ||
os: ubuntu-latest | ||
- name: macOS | ||
os: macos-latest | ||
os: macos-13 # macos-14 use M1 chips, which causes many failures | ||
- name: Windows | ||
os: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
|
||
- name: Setup vcpkg (Windows) | ||
uses: dawidd6/[email protected] | ||
|
@@ -192,7 +192,7 @@ jobs: | |
if: failure() | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4.2.0 | ||
uses: codecov/codecov-action@v4.3.1 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
|
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