Skip to content

Commit f42352a

Browse files
committed
[projmgr] Update debug-adapters registry and schema retrieval workflow
1 parent 90a2d25 commit f42352a

3 files changed

Lines changed: 38 additions & 20 deletions

File tree

.github/workflows/projmgr.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ jobs:
111111
retention-days: ${{ needs.setup.outputs.retention_days }}
112112
if-no-files-found: error
113113

114+
- name: Archive projmgr schemas
115+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
116+
with:
117+
name: projmgr-schemas
118+
path: ./tools/projmgr/schemas
119+
retention-days: ${{ needs.setup.outputs.retention_days }}
120+
if-no-files-found: error
121+
122+
- name: Archive projmgr templates
123+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
124+
with:
125+
name: projmgr-templates
126+
path: ./tools/projmgr/templates
127+
retention-days: ${{ needs.setup.outputs.retention_days }}
128+
if-no-files-found: error
129+
114130
build-swig:
115131
needs: [ setup, matrix_prep ]
116132
runs-on: ${{ matrix.runs_on }}
@@ -193,8 +209,18 @@ jobs:
193209
run: |
194210
mkdir -p tools/projmgr/distribution/bin tools/projmgr/distribution/lib tools/projmgr/distribution/doc tools/projmgr/distribution/etc
195211
cp tools/projmgr/docs/LICENSE.txt tools/projmgr/distribution/
196-
cp -r tools/projmgr/schemas/* tools/projmgr/distribution/etc/
197-
cp -r tools/projmgr/templates/* tools/projmgr/distribution/etc/
212+
213+
- name: Download projmgr schemas
214+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
215+
with:
216+
name: projmgr-schemas
217+
path: tools/projmgr/distribution/etc/
218+
219+
- name: Download projmgr templates
220+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
221+
with:
222+
name: projmgr-templates
223+
path: tools/projmgr/distribution/etc/
198224

199225
- name: Download projmgr linux-amd64
200226
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

tools/projmgr/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ dump_cmake_project_version()
77

88
configure_file(src/ProductInfo.h.in ProductInfo.h)
99

10-
file(DOWNLOAD
11-
https://raw.githubusercontent.com/Open-CMSIS-Pack/debug-adapter-registry/refs/heads/main/registry/debug-adapters.yml
12-
${CMAKE_CURRENT_SOURCE_DIR}/templates/debug-adapters.yml
10+
# debug adapter registry
11+
include(FetchContent)
12+
FetchContent_Declare(
13+
debug-adapter-registry
14+
DOWNLOAD_EXTRACT_TIMESTAMP ON
15+
URL https://github.com/brondani/debug-adapter-registry/releases/download/v2.11.0/debug-adapter-registry.zip
16+
URL_HASH SHA256=137406e5e3c9ed6ab01ccda711e1d0d8b063ec5bdfb692dafa41e36860f3bc60
1317
)
18+
FetchContent_MakeAvailable(debug-adapter-registry)
19+
file(COPY ${debug-adapter-registry_SOURCE_DIR}/schemas/debug-adapters.schema.json DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/schemas)
20+
file(COPY ${debug-adapter-registry_SOURCE_DIR}/registry/debug-adapters.yml DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/templates)
1421

1522
# rpc interface
1623
include(FetchContent)

tools/projmgr/schemas/debug-adapters.schema.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)