Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ci-caches.yml 2.9 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
  1. #
  2. # Create CI caches for:
  3. #
  4. # 1. GMT remote data for building documentation and running tests
  5. # 2. vcpkg libraries on Windows
  6. #
  7. name: GMT CI Caches
  8. on:
  9. # Uncomment the "push:" line to manually re-cache data artifacts in pushes
  10. #push:
  11. # Uncomment the 'pull_request:' line to manually re-cache data artifacts in PRs
  12. #pull_request:
  13. # Schedule runs on 12 noon every Sunday
  14. schedule:
  15. - cron: '0 12 * * 0'
  16. jobs:
  17. data_cache:
  18. name: Cache GMT data
  19. # We have to use macOS, because Linux/Windows agents may fail to download
  20. runs-on: macOS-latest
  21. steps:
  22. - name: Cancel Previous Runs
  23. uses: styfle/cancel-workflow-action@0.9.1
  24. with:
  25. access_token: ${{ github.token }}
  26. - name: Install GMT
  27. run: brew install gmt
  28. - name: Download remote data
  29. run: |
  30. # list of datasets used in tests
  31. data="@earth_relief_01d earth_relief_01d_g \
  32. @earth_relief_30m \
  33. @earth_relief_20m \
  34. @earth_relief_15m \
  35. @earth_relief_10m @earth_relief_10m_g \
  36. @earth_relief_06m \
  37. @earth_relief_05m @earth_relief_05m_g \
  38. @earth_relief_04m \
  39. @earth_relief_02m \
  40. @earth_relief_01m \
  41. @earth_day_01d \
  42. @earth_day_20m \
  43. @earth_night_20m \
  44. @earth_age_06m \
  45. @earth_age_02m \
  46. @earth_mask_05m \
  47. @earth_mask_30s_p"
  48. # Download remote data multiple times to make sure all are downloaded
  49. gmt which -Ga $data
  50. gmt which -Ga $data
  51. gmt which -Ga $data
  52. # Download cache files
  53. gmt get -Dcache
  54. # Download extra tiles for tests
  55. # test/grdimage/rounding.sh
  56. gmt grdcut -R3:57/4:18/44:00/44:15 @earth_relief_03s -G/dev/null
  57. # doc/example/anim02
  58. gmt grdcut @earth_relief_30s -R-108/-103/35/40 -G/dev/null
  59. # doc/example/ex32
  60. gmt grdcut @earth_relief_30s_p -R3/9/50/54 -G/dev/null
  61. # Upload the downloaded files as artifacts to GitHub
  62. - name: Upload artifacts to GitHub
  63. uses: actions/upload-artifact@v2
  64. with:
  65. name: gmt-cache
  66. path: |
  67. ~/.gmt/cache
  68. ~/.gmt/server
  69. vcpkg_cache:
  70. name: Cache vcpkg libraries
  71. runs-on: windows-latest
  72. steps:
  73. - name: Cancel Previous Runs
  74. uses: styfle/cancel-workflow-action@0.9.1
  75. with:
  76. access_token: ${{ github.token }}
  77. - name: Checkout
  78. uses: actions/checkout@v2
  79. - name: Install vcpkg libraries
  80. run: bash ci/install-dependencies-windows.sh
  81. - name: Upload artifacts to GitHub
  82. uses: actions/upload-artifact@v2
  83. with:
  84. name: vcpkg-cache
  85. # VCPKG_INSTALLATION_ROOT is C:\vcpkg
  86. path: C:\vcpkg\installed\
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...